LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2005, 10:44 PM   #1
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
User and Group Admin: How to tell Who is in What group?


Looking at my /etc/passwd, I have this entry:

nobody:x:65534:65534:nobody:/nonexistent:/bin/sh

As I understand it, the second 65534 is the GID that nobody belongs to. Now, looking at my /etc/group, I have this entry:

nogroup:x:65534:

The entry in /etc/passwd seems to imply that user 'nobody' belongs to the group 'nogroup'. However, if that is so, then shouldn't the entry in /etc/group be:

nogroup:x:65534:nobody ?

In fact for most of the entries in /etc/group, there is no entry for members of the group (i.e. no entries after the last colon).

Please correct me if I'm wrong.

Thanks !
 
Old 11-12-2005, 11:16 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: User and Group Admin: How to tell Who is in What group?

Quote:
Originally posted by Akhran
[B]
nogroup:x:65534:nobody ?

In fact for most of the entries in /etc/group, there is no entry for members of the group (i.e. no entries after the last colon).
Only members whose PRIMARY group-membership isn't
set in /etc/paswd need to be listed in /etc/group. That is,
if nobody was member of a group nobody (with that being
defined as his default group in passwd) and you also wanted
him to be member of nogroup you'd need to make him a
member of that in /etc/group



Cheers,
Tink
 
  


Reply



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
what's the difference between main group and other group? hongxing Linux - Software 1 11-14-2005 06:40 AM
well, there's info written inside /etc/group. accidentally del /etc/group in RedHat9 karmakid Red Hat 1 07-27-2005 10:27 PM
Apache DocumentRoot and Admin Group permissions Niels@debian Linux - Software 0 10-27-2004 12:34 AM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM
[alert] (22) Invalid argument : setgid : unable to set group id to Group 4294967295 Niraj Linux - Networking 1 12-13-2001 06:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:53 PM.

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