nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

user name not updated in /etc/group file

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 ...


Go Back   nixCraft Linux Forum > UNIX operating systems > HP-UX

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 08-20-2008, 02:07 PM
Junior Member
User
 
Join Date: Aug 2008
My distro: Red Hat and SUSE
Posts: 2
Rep Power: 0
chandregowda is on a distinguished road
Default user name not updated in /etc/group file

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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-31-2008, 06:52 PM
Junior Member
User
 
Join Date: Aug 2008
Location: Richmond, VA
My distro: RedHat & HP-UX
Posts: 1
Rep Power: 0
topazcode is on a distinguished road
Default

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.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
how to add group of users from an input file john23 Shell scripting 1 08-06-2008 02:59 AM
AIX /etc/security/user like file for Linux ftengcheng Getting started tutorials 4 03-25-2008 02:28 AM
Ubuntu Linux add a user to group sweta Ubuntu / Debian 0 11-01-2007 03:41 AM
Alphabetical file name and list logged in user script oronno Shell scripting 5 08-22-2007 01:10 PM
can not find user name in /etc/passwd file subrata1in Linux software 2 03-26-2007 11:44 AM


All times are GMT +5.5. The time now is 08:50 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36