Linux / UNIX Tech Support Forum
This is a discussion on user name not updated in /etc/group file within the HP-UX forums, part of the UNIX operating systems category; Hi I have created user abc123 with primary group "users" and secondary group "work".but user abc123 is not showing in ...
|
|||||||
|
|||
|
Hi
I have created user abc123 with primary group "users" and secondary group "work".but user abc123 is not showing in group "user" in the in /etc/group file. i have given commands like below $more /etc/passwd|grep abc123 abc123:*:21344:20:testuser:/home/test:/usr/bin/ksh $more /etc/group |grep users users::20:root,arcade but if i check with id commannd its displaying the groupname for abc123 $id -ng abc123 users $id -nG abc123 work |
| Sponsored Links | ||
|
|
|
|||
|
In the /etc/group file, a user does not need to be added to its primary group. The connection is established in /etc/passwd only. So, if my primary group is 'users' and secondary, 'work' I will only see the username appended to work in the /etc/group file.
I believe this was done to limit the length of lines in /etc/group quite some time ago. However, it is nothing to worry about and the system is behaving as expected. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to add group of users from an input file | john23 | Shell scripting | 1 | 08-06-2008 01:59 AM |
| AIX /etc/security/user like file for Linux | ftengcheng | Getting started tutorials | 4 | 03-25-2008 01:28 AM |
| Ubuntu Linux add a user to group | sweta | Ubuntu / Debian | 0 | 11-01-2007 02:41 AM |
| Alphabetical file name and list logged in user script | oronno | Shell scripting | 5 | 08-22-2007 12:10 PM |
| can not find user name in /etc/passwd file | subrata1in | Linux software | 2 | 03-26-2007 10:44 AM |