- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- change group name or add to secondary group on the...
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
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
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-14-2012 02:37 AM
05-14-2012 02:37 AM
change group name or add to secondary group on the fly
hi ,
Can i change group of a specific user from one to another on the fly or atleast can i add that user to a secondary group even though he is logged in .
Am using hp ux 11i v2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2012 07:26 PM - edited 05-14-2012 07:27 PM
05-14-2012 07:26 PM - edited 05-14-2012 07:27 PM
Re: change group name or add to secondary group on the fly
You can always directly edit /etc/passwd and /etc/group.
For 11.31, there is a -F option to usermod(1m) to force it, even if in use.
- Tags:
- usermod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2012 04:40 AM
05-20-2012 04:40 AM
Re: change group name or add to secondary group on the fly
Hi Dennis ,
When i directly edit /etc/passwd and group am able to view through id command that the group is changed..i.e primary , but still chown needs to be run right ?
I just want to segregate my current 100 users in 4 groups say dc1 dc2 dc3 dc4 ;
its fine if i dont change their primary group , i just want segregation for my admin purpose , how can i achieve it on the fly .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2012 02:10 PM
05-20-2012 02:10 PM
Re: change group name or add to secondary group on the fly
>but still chown needs to be run right?
Yes, that or chgrp(1).
>I just want to segregate my current 100 users in 4 groups say dc1 dc2 dc3 dc4
You can do a find with "-user user-name":
find path -user user-name -exec chgrp group-name {} +