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 33 down vote accepted

Use the commands:

getent group groupname


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

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


share|improve this answer

Your Answer


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.