1752579 Members
4257 Online
108788 Solutions
New Discussion юеВ

Users in a Group

 
shibu chemmeri
New Member

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 5
Dennis Handly
Acclaimed Contributor

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
New Member

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
New Member

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