group members

Sergey Katalichenka skatalichenka at constantcontact.com
Fri Sep 21 18:28:29 UTC 2007


Actually .... no, well at least not completely. 


The usernames will show up in the /etc/group if that group is secondary
for the user. Some of the default groups created by OS will have a
primary user as well, but useradd command does not add username for the
primary user group to the /etc/groups.


So I will suggest grep <groupname> /etc/passwd; grep
<groupName> /etc/group to get all of them.

Hope it helps.

--sk



On Fri, 2007-09-21 at 16:56 +0000, Mike -- EMAIL IGNORED wrote:

> On Thu, 20 Sep 2007 22:33:29 -0500, Mikkel L. Ellertson wrote:
> 
> > Mike -- EMAIL IGNORED wrote:
> >>>From a konsole, how can I determine
> >> all the members of a group?
> >> Thanks,
> >> Mike.
> >> 
> > One way is to rung something like "grep <group name> /etc/group". But
> > you can run into problems if the group name is also a user name, or is
> > part of a larger group name.
> > 
> > Mikkel
> [...]
> 
> How about:
>    grep ^<groupName>: /etc/group
> ?
> Mike.
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070921/a2f8778e/attachment-0001.htm>


More information about the fedora-list mailing list