Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-04-2014, 07:39 AM   #1
LQ Newbie
Registered: Dec 2014
Location: Atlanta
Distribution: Red Hat Enterprise Linux Server release 6.5 (Santiago)
Posts: 1

Rep: Reputation: Disabled
What is the command to display the members of a group?

What is the command to display the members of a group?
Old 12-04-2014, 08:01 AM   #2
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
It's called ...... group! (surprise, surprise). Check out "man group" and you'll see how it works.
Old 12-04-2014, 08:17 AM   #3
Senior Member
Registered: Nov 2011
Distribution: Debian
Posts: 1,170

Rep: Reputation: 240Reputation: 240Reputation: 240
/etc/group is not reliable if you want the members of a group.

You need to find the GID in /etc/group and then check /etc/passwd for occurrences of that GID.
This will give you a list of user names (or UID's).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
List Members of a group command line Nanosuz Linux - Newbie 2 08-23-2012 06:19 PM
Locate Members of a Group? carlosinfl Linux - General 6 09-05-2008 02:26 PM
all winbind members of same group paul_mat Linux - Networking 0 01-16-2006 05:46 PM
bash command that lists all members of a group by their real names quadmore Linux - Newbie 4 11-07-2005 10:46 AM
winbind: group members? eantoranz Linux - Software 0 11-01-2005 08:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration