nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


HP-UX Discussions of HP-UX UNIX operating system.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-20-2008, 01:07 PM
Junior Member
User
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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, 05:52 PM
Junior Member
User
 
Join Date: Aug 2008
Location: Richmond, VA
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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


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 Off


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


All times are GMT +5.5. The time now is 06:22 AM.


Powered by vBulletin® Version 3.8.3 - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
©2005-2009 nixCraft. All rights reserved

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