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.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux