LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-04-2014, 08:39 AM   #1
dmreines
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, 09:01 AM   #2
jdkaye
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.
jdk
 
Old 12-04-2014, 09:17 AM   #3
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
/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).
 
  


Reply


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 07:19 PM
Locate Members of a Group? carlosinfl Linux - General 6 09-05-2008 03:26 PM
all winbind members of same group paul_mat Linux - Networking 0 01-16-2006 06:46 PM
bash command that lists all members of a group by their real names quadmore Linux - Newbie 4 11-07-2005 11:46 AM
winbind: group members? eantoranz Linux - Software 0 11-01-2005 09:47 AM


All times are GMT -5. The time now is 02:15 AM.

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