Re: Getting the list of members in a group.
- From: Lew Pitcher <lpitcher@xxxxxxxxxxxx>
- Date: Wed, 20 Jun 2007 05:11:14 -0700
On Jun 20, 6:59 am, voipfc <voi...@xxxxxxxxxxxxxx> wrote:
This appears to be a simple question, but I have never gotten round to
find out due to webmin.
How do you list the members of group from the command line?
The simplest way would be to
cat /etc/group
and look at the fourth field
A bit more complex would be
grep 'groupname' /etc/group
and look at the fourth field
And, you could
awk -F : '$1 ~ /groupname/ { print $4}' /etc/group
and look at the output
.
- References:
- Getting the list of members in a group.
- From: voipfc
- Getting the list of members in a group.
- Prev by Date: Re: How to install linux from floppy, without a bootable cdrom drive?
- Next by Date: Re: Getting the list of members in a group.
- Previous by thread: Getting the list of members in a group.
- Next by thread: Re: Getting the list of members in a group.
- Index(es):
Relevant Pages
|
|