Re: How do I list all users in a group?
On 7 Mar 2007 05:14:34 -0800, kawanokami wrote
> Hi, I know the question may have simple answer... but I googled to no
> avail for quite some time now.
> Is there a command to list all users that are part of a group?
> If I look into /etc/passwd I can see some informations, but not all
> and not easy to reconstruct.
> Thank you all for any advice,
Try apt-get install members
# members group
Should give you a list of its members. Unfortunetly, the output
is seperate by spaces, not returns, so, if you want to use it in
a script, you may want to further edit its output to your needs.
Cheers,
Mike
Reply to: