- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with group membership
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
05-13-2009 10:00 AM
05-13-2009 10:00 AM
Problem with group membership
I used the following command to change the secondary group of a particlar user.
/usr/sam/lbin/usermod.sam -F -G 4000
Now my question is whether this command will remove all other secondary group membership for that particular user or it will add the group with ID 4000 as another secondary group for the user ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 11:15 AM
05-13-2009 11:15 AM
Re: Problem with group membership
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 11:19 AM
05-13-2009 11:19 AM
Re: Problem with group membership
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 11:20 AM
05-13-2009 11:20 AM
Re: Problem with group membership
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 12:39 PM
05-13-2009 12:39 PM
Re: Problem with group membership
this is modify the secondary groups for a particular user.
Like it or worked !! Click kudos !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 12:52 PM
05-13-2009 12:52 PM
Re: Problem with group membership
Word of caution, the format of the file is strict and a typo may make life miserable for other and in turn for you, but again, we are all unix admins and should know what to do. Right ? :)
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 12:56 PM
05-13-2009 12:56 PM
Re: Problem with group membership
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 01:04 PM
05-13-2009 01:04 PM
Re: Problem with group membership
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 01:12 PM
05-13-2009 01:12 PM
Re: Problem with group membership
cat /var/tmp/dummygroup > /etc/group
this adds the secondary group membership for "dba" group, to the userid "newuser"
you can script these two commands as your heart desires.
hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 01:12 PM
05-13-2009 01:12 PM
Re: Problem with group membership
CUR_GROUPS=$(groups -g jtraigle | sed 's/ /,/g')
/usr/sam/lbin/usermod.sam -F -G ${CUR_GROUPS},4000
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 01:35 PM
05-13-2009 01:35 PM
Re: Problem with group membership
I was under the assumption that usermod -G
UVK, what Jeff told is right. It will replace the group list. Even usermod does so..
# usermod -G 4001 test
# id test
uid=101(test) gid=20(users) groups=4001(oper)
# usermod -G 4000 test
# id test
uid=101(test) gid=20(users) groups=4000(operm)