Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I see all the members of a group in Linux?

share|improve this question

2 Answers 2

up vote 23 down vote accepted

Use the commands:

getent group groupname

or

getent group groupname | awk -F: '{print $4}'
share|improve this answer

Just FYI, this answer appears to be incomplete and may miss certain users.

http://stackoverflow.com/questions/2835368/how-to-list-all-users-in-a-linux-group

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.