Answer the question
In order to leave comments, you need to log in
How to see all users in a group?
Hello everyone
Please tell me how to see all the users who are in the group? (the task was set like this)
getent group GroupName gives out unfortunately not all ( https://unix.stackexchange.com/questions/241215/ho...
Answer the question
In order to leave comments, you need to log in
And what did not suit the first answer on your link?
You can use grep:
grep '^group_name_here:' /etc/group
This only lists supplementary group memberships, not the user who have this group as their primary group. And it only finds local groups, not groups from a network service such as LDAP.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question