Subject: Re: id(1) flag to get group members
To: Jan Schaumann <>
From: dieter roelants <>
List: tech-userlevel
Date: 06/18/2006 00:45:43
On 06/18/06 00:38:03, Jan Schaumann wrote:
> Hi,
> I've on occasion had the need for a tool that tells me the users in a
> given group.  Sure, I could manually look at /etc/group or the NIS
> database, but it seemed to me like id(1) should be able to do that.
> The attached patch provides a flag for id(1) to get a groups members.
> (This only lists users who are in the supplementary group, not where
> the
> group is the primary group of a user.)
> Does this make sense?

Perhaps it does. But you can also use 'getent group' to do that.

kind regards

> -Jan
> --
> Free Speech Online - Stop Internet Censorship
>    --- Electronic Frontier Foundation -- ---