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

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

share|improve this question

2 Answers 2

up vote 40 down vote accepted

Use the commands:

getent group groupname

or

getent group groupname | awk -F: '{print $4}'
share|improve this answer
1  
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 at 4:56
    
chmod -R g+w idea-IU-141.1010.3 –  Donato Jun 9 at 5:14

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.