View Single Post

   
  #3 (permalink)  
Old 01-19-2008, 07:11 AM
Davide Bianchi
 
Posts: n/a
Default Re: Getting the list of members in a group.

On 2007-06-20, Lew Pitcher <lpitcher@teksavvy.com> wrote:
> On Jun 20, 6:59 am, voipfc <voi...@googlemail.com> wrote:
> The simplest way would be to
> cat /etc/group
> and look at the fourth field


All those have a problem: they don't give you all the members for a
group.

If I do this on my system:

# id
uid=1000(davide) gid=100(users)
groups=100(users),11(floppy),17(audio),18(video),1 9(cdrom)

# grep users /etc/group
users::100:

So I'm member of the group 'users' but I do not appear in the group file
associated to that group.

Davide

--
Microsoft seems to have gotten a lot of mileage out of the C2 rating for
NT with no network connection. I wonder if a B3 rating for Linux with no
power cord might be of value.
Reply With Quote