Subject: Re: id(1) flag to get group members
To: Jan Schaumann <jschauma@netmeister.org>
From: dieter roelants <dieter.NetBSD@pandora.be>
List: tech-userlevel
Date: 06/18/2006 00:45:43
On 06/18/06 00:38:03, Jan Schaumann wrote:
> Hi,
>=20
> 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.
>=20
> 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.)
>=20
> Does this make sense?

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

kind regards
dieter

>=20
> -Jan
>=20
> --
> Free Speech Online - Stop Internet Censorship
>    --- Electronic Frontier Foundation -- http://www.eff.org ---
>=20