LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 07: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, 08:01 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

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, 08:17 AM   #3
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
/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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:48 PM.

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
Open Source Consulting | Domain Registration