listing members of a unix group | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

listing members of a unix group

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-09-2005
ovaska ovaska is offline
Registered User
 
Join Date: Mar 2005
Last Activity: 9 March 2005, 1:56 PM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
listing members of a unix group

I know there is a "groups" command to list the groups a user belongs to, but how about the opposite? Is there a standard command to find out which users belong to a particular group?
Sponsored Links
    #2  
Old 03-09-2005
jyoung jyoung is offline
Registered User
 
Join Date: Nov 2001
Last Activity: 12 May 2014, 12:49 PM EDT
Location: Flint, MI
Posts: 262
Thanks: 0
Thanked 4 Times in 4 Posts
On AIX I can use lsgroup. Try man lsgroup to get the correct flags and stuff.
Sponsored Links
    #3  
Old 03-09-2005
reborg's Avatar
reborg reborg is offline Forum Advisor  
Administrator Emeritus
 
Join Date: Mar 2005
Last Activity: 29 March 2012, 7:00 PM EDT
Location: Ireland
Posts: 4,464
Thanks: 0
Thanked 11 Times in 11 Posts
grep ^<groupname>: /etc/group

for group staff this would be

grep ^staff: /etc/group
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to list group members in solaris 9 vr_mari Solaris 7 05-02-2009 06:20 AM
members in a group arthi Linux 9 04-29-2009 12:33 PM
How to allow group members to kill process? The Dark Knight AIX 4 01-03-2009 11:07 AM
How to get a list of group members? akbar Shell Programming and Scripting 5 11-16-2008 07:29 PM



All times are GMT -4. The time now is 08:40 PM.