- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Suse Linux - groupdel command gives error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2010 08:33 AM
тАО02-22-2010 08:33 AM
Suse Linux - groupdel command gives error
I am using Suse Linux
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 2
While adding group using the command: groupadd -u 50001 test
it adds the entry to the group file
but while deleting using command : groupdel test
it says unkown group 'test'
I tried this option for deleting:
groupdel -P /etc test
It suceeds and deleted the group.
I would like to know why it works with -P option and why it didn't worked without -P..?
Is it searching for any passwd or shadow files else where instead of /etc folder?
Thanks in Advance.
Venkatesan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2010 08:53 AM
тАО02-22-2010 08:53 AM
Re: Suse Linux - groupdel command gives error
It is probably a software flaw in the groupdel command. Check the man page, you also might not be using sufficiently precise syntax.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2010 09:06 AM
тАО02-22-2010 09:06 AM
Re: Suse Linux - groupdel command gives error
I have used the right syntax to add. The same issue happens even while adding a user. It would say useradd: Unknown group `groupname`.
In general its not reading /etc/group file.
In all scenarios, if we use -P /etc it succeeds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2010 10:54 AM
тАО02-22-2010 10:54 AM
Re: Suse Linux - groupdel command gives error
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2010 12:10 PM
тАО02-22-2010 12:10 PM
Re: Suse Linux - groupdel command gives error
Hopefully you actually did 'groupadd -g 50001 test' as there is no '-u' option to group add.
I did a groupadd and a groupdel on my SLES 10 SP2 server and it worked fine.
[ root@fllas01:/root ]
# groupadd -u 50001 test
Try `groupadd --help' or `groupadd --usage' for more information.
[ root@fllas01:/root ]
# groupadd -g 50001 test
[ root@fllas01:/root ]
# grep test /etc/group
test:!:50001:
[ root@fllas01:/root ]
# groupdel test
[ root@fllas01:/root ]
# grep test /etc/group
[ root@fllas01:/root ]
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2010 12:13 PM
тАО02-22-2010 12:13 PM
Re: Suse Linux - groupdel command gives error
[ root@fllas01:/root ]
# groupadd ├в v
groupadd (pwdutils) 3.0.7.1
Copyright (C) 2005 Thorsten Kukuk.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[ root@fllas01:/root ]
# groupdel ├в v
groupdel (pwdutils) 3.0.7.1
Copyright (C) 2005 Thorsten Kukuk.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[ root@fllas01:/root ]
# rpm ├в qa |grep pwdutils
pwdutils├в 3.0.7.1├в 17.24
If you are not up to date on pwdutils, you should probably look into getting there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2010 12:15 PM
тАО02-22-2010 12:15 PM
Re: Suse Linux - groupdel command gives error
This should be better:
[ root@fllas01:/root ]
# groupadd -v
groupadd (pwdutils) 3.0.7.1
Copyright (C) 2005 Thorsten Kukuk.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[ root@fllas01:/root ]
# groupdel -v
groupdel (pwdutils) 3.0.7.1
Copyright (C) 2005 Thorsten Kukuk.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[ root@fllas01:/root ]
# rpm -qa |grep pwdutils
pwdutils-3.0.7.1-17.24