Re: group members

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux