Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 69 down vote accepted

Use the commands:

getent group groupname


getent group groupname | awk -F: '{print $4}'
share|improve this answer
So to add group, add user to group, change permissions of folder to group, and get all members of group, you would run the following commands respectively: addgroup programmers adduser donato programmers chown -R root:programmers idea-IU-141.1010.3 getent group programmers – Donato Jun 9 '15 at 4:56
chmod -R g+w idea-IU-141.1010.3 – Donato Jun 9 '15 at 5:14

use "members " and it will list all users in the group you chose

share|improve this answer
where did you find such command? – Jakuje Dec 10 '15 at 9:24
You may need to install it sudo apt-get install members – Ben Holland Dec 21 '15 at 19:40

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.