- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: No entry for user in /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
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
02-15-2003 11:38 PM
02-15-2003 11:38 PM
No entry for user in /etc/group
useradd -g root -s /usr/bin/ksh -m -k /etc/skel user_name.
ie. primary group of user is root. but I do not see entry under /etc/group.
group root does not list entry for user.
it is as follows.
root::0:root
this user does not belog to groups more than 8. pwck and grpck ware OK. system in trusted mode.
This is HP-UX 11.11.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2003 11:48 PM
02-15-2003 11:48 PM
Re: No entry for user in /etc/group
-g specifies the primary group. IT does not need to be listed in /etc/group. However, if you add the user in multiple groups, then you would add -G flag and that will put the login under the corresponding groups. For ex., if you modify the above like
useradd -g root -G users -s /usr/bin/ksh -m -k /etc/skel user
then you will find user under users group in /etc/groups.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2003 11:52 PM
02-15-2003 11:52 PM
Re: No entry for user in /etc/group
if user belogs to just one group(no secondary groups at all), then it will have no entry in /etc/group?
the group for this user is root. I want to put this in /etc/default/security for restrictions on su so that only this user can do su - root
Thanks anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2003 12:02 AM
02-16-2003 12:02 AM
Re: No entry for user in /etc/group
For ex., before adding the user, edit /etc/group and add "user" to root's group. Then execute useradd -g command. It will take out user from the group file.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2003 03:29 AM
02-16-2003 03:29 AM
Re: No entry for user in /etc/group
I don't know anything about Unix standards but I think that the useradd command (together with the other user* group* commands) was only introduced by SysV Unices.
Even today the *BSDs have a simple script called adduser (nowadays usually a Perl script) that executes all the necesarry steps during the creation of a new account (like updating the files passwd, group, shadow in etc, creating the $HOME dir, copying files from /etc/skel, setting ownership and permission bits).
So if you have access to a *BSD it is quite instructive to have a look at this script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2003 10:18 PM
02-16-2003 10:18 PM
Re: No entry for user in /etc/group
As far as the SUROOT group, you might want to make the user part of the standard usergroup and add a secondary group of root (or maybe suroot) which you would have to list in /etc/group (-G suroot). That way, a user's association with SUROOT privileges can be easily removed by editing /etc/group and removing the user's membership to suroot. By making suroot the default, you would have to run vipw or otherwise edit the passwd file to change the default group. From s system administration point of view, a user should start life (login) as a standard user and then be given additional privileges. It's mostly cosmetic but it makes it easier for other sysadmins.
Bill Hassell, sysadmin