Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 08-19-2007, 01:02 PM   #1
Registered: Sep 2004
Location: Malaysia
Posts: 181

Rep: Reputation: 30
ID created with assigned group is not display in /etc/group file

Every time I created ID in the servers and when the ID is assigned with few groups. The groups will display while I tried to check with "id -a username"

When I tried to check the assigned group in /etc/group file, I found the ID only display in one of the group. Where the ID does not display in the in other groups.

Does anyone know why? Appreciate someone can help on this.
Old 08-21-2007, 06:38 PM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Each user group has only one record in the /etc/group file. Is that what you mean? I don't really understand your question. It sounds like you are asking why each user group only has one entry in the /etc/group file.

If you want to know which groups are assigned to a specific user account you can either log in as the user and enter the groups command, or you can use grep to search for the user account name in the /etc/group file.

You should find someone who can speak English a lot better than you can and get them to help you write your question.

Last edited by stress_junkie; 08-21-2007 at 06:42 PM.
Old 08-21-2007, 11:39 PM   #3
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
Example ID created as below
username: abc
groups: group1, group2, group3

# id abc
uid=300(abc) gid=500(group1) groups=501(group2),502(group3)

While I check on /etc/group

Does anyone know why the user ID abc does not shows in group2 and group3 in /etc/group


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Files getting created with owner as nobody and group as nogroup, how to stop? itsakc Linux - General 2 10-25-2007 07:13 PM
Trying to Add Users to Newly Created Group (Red Hat version) Linux_Enabled Red Hat 1 07-31-2007 11:13 PM
group: add complete group into other group max_mad SUSE / openSUSE 1 04-12-2006 02:43 AM
No grub.conf be created when group Core installed in kickstart Linux - General 0 01-16-2006 04:08 AM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 05:01 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration