- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Update /etc/passwd and not /etc/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
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
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
тАО11-11-2002 10:26 PM
тАО11-11-2002 10:26 PM
useradd -m -g Johngroup -d /data/user1 -s /bin/false user1
is updating /etc/passwd and /etc/group file both.
how do i make this command to update only the /etc/passwd and not /etc/group file.
Thanks
Aravind
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2002 10:58 PM
тАО11-11-2002 10:58 PM
Re: Update /etc/passwd and not /etc/group
you cannot prevent the command to write in /etc/group file, but you can delete the new entry in the group-file manually.
useradd -m -g Johngroup -d /data/user1 -s /bin/false user1 | sed -e 's/user1//' -e 's/,$//' /etc/group > /etc/group.tmp; mv /etc/group.tmp /etc/group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2002 11:08 PM
тАО11-11-2002 11:08 PM
Re: Update /etc/passwd and not /etc/group
Since you are using -g option the useradd command will update /etc/group , there is no
way to prevent other than omiting -g option
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2002 11:29 PM
тАО11-11-2002 11:29 PM
Re: Update /etc/passwd and not /etc/group
useradd behaves differently in 10.20 and 11.00
It updates /etc/group in 10.20 and not in 11.00 !!!
Any patches.. any previously reported issues ?
Thanks
Aravind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2002 11:31 PM
тАО11-11-2002 11:31 PM
Re: Update /etc/passwd and not /etc/group
follow this link
http://www.informatik.uni-frankfurt.de/RBI/hp-service/patches/s700_800/10.X/PHCO_18925.txt
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2002 11:42 PM
тАО11-11-2002 11:42 PM
Re: Update /etc/passwd and not /etc/group
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2002 01:51 AM
тАО11-12-2002 01:51 AM
Re: Update /etc/passwd and not /etc/group
PHCO_18925 s700_800 10.20 user/group(add/mod/del) Cumulative patch
But no help, the useradd is still behaving the same way.
Was that patch meant for this behaviour ?
Aravind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2002 04:54 AM
тАО11-12-2002 04:54 AM
Re: Update /etc/passwd and not /etc/group
primary group information is in /etc/passwd
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2002 05:23 AM
тАО11-12-2002 05:23 AM
SolutionBasically, prior to 11.0 a user was only in one group at a time unless /etc/logingroup existed. Generally one would create logingroup as a symlink to /etc/group. With 11.x, /etc/logingroup is no longer needed.
Search the forums for logingroup. You'll find a number of threads including:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xaa27eea29889d611abdb0090277a778c,00.html
Darrell