cancel
Showing results for 
Search instead for 
Did you mean: 

Users in a Group

 
shibu chemmeri
Occasional Visitor

Users in a Group

how to get the list of users in a group by a single command without doing a grep in group file?
5 REPLIES

Re: Users in a Group

I don't think there is any, since grep is good enough. groups(1) gives the groups for a user.
shibu chemmeri
Occasional Visitor

Re: Users in a Group

Thanks Denni
Sani
Frequent Advisor

Re: Users in a Group

Hi Shibu ,

Please use "logins" commmand

#logins -g

This will display all users belonging to the group


shibu chemmeri
Occasional Visitor

Re: Users in a Group

Thanks Mr.Sanil
Sridhar R
Regular Advisor

Re: Users in a Group

Hi,

You can get the same by the below command also:


#listusers -g


Thanks & Regards
Sridhar