- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How can I change GID of a user group?
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
Forums
Discussions
Discussions
Discussions
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
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
06-05-2007 09:58 PM
06-05-2007 09:58 PM
How can I change GID of a user group?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2007 10:12 PM
06-05-2007 10:12 PM
Re: How can I change GID of a user group?
read carefully "man setuid".
hth
regards
pg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2007 10:15 PM
06-05-2007 10:15 PM
Re: How can I change GID of a user group?
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2007 10:48 PM
06-05-2007 10:48 PM
Re: How can I change GID of a user group?
My system doesn't include setuid and setgid statements.
Now I have another question:
How can I delete user group?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2007 11:22 PM
06-05-2007 11:22 PM
Re: How can I change GID of a user group?
groupmod command...
check man pages for groupmod
For deleting group
groupdel
Thanks & Regards
Reshma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2007 11:31 PM
06-05-2007 11:31 PM
Re: How can I change GID of a user group?
I'm not sure I understand the question. The GID is a number and is associated with a name in the /etc/group file. If you edit the /etc/group file, then the name associated with a number can be changed. HP-UX only keeps the number for files and user associations -- the name is simply an alias to the number.
> My system doesn't include setuid and setgid statements.
Actually, it does. If you mean that the command:
man setuid
fails with the error: No manual entry for setuid, then someone has removed some man pages, perhaps all of them (a very, very bad idea). The man page for groupmod will be useful if you need to redefine a GID or group name. If your man pages have been trashed, see all the man pages here:
http://docs.hp.com/en/B2355-60103/
specifically for groupmod:
http://docs.hp.com/en/B2355-60103/groupmod.1M.html
> How can I delete user group?
As mentioned before, groups are simply numbers. Removing the line in /etc/group just removes the name association with the number. Files and users still retain the numbers. Are you trying to remove a group from a user's definitions? If yes, then use SAM to change the user's primary group, or if the user is a member of additional groups, you can remove the user's association by editing /etc/group and removing the user's name from specified group(s).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2007 04:10 PM
06-06-2007 04:10 PM
Re: How can I change GID of a user group?
If /etc/group has 99 for FOO, you could have 100s of users with GID of 99. To change that you would have to edit all the users, then change ALL of the files to your new GID.
I.e. you don't want to do that.
If you want to change the name of the group, you just edit the file.
> My system doesn't include setuid and setgid statements.
>Bill: Actually, it does.
Strictly speaking it doesn't. setuid(2) is a system call and not a command like groupmod(1M). And I don't think cbozlagan is interested in changing it dynamically in an application.