Subject: Re: id(1) flag to get group members
To: None <firstname.lastname@example.org>
From: Peter Postma <email@example.com>
Date: 06/18/2006 16:22:11
On Sat, Jun 17, 2006 at 06:38:03PM -0400, Jan Schaumann wrote:
> 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.
"groupinfo group" also lists the group members.
> 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?
I don't think that putting this into id(1) ("return user identity")
makes sense. It would also be a non-standard addition.