LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is the command to display the members of a group? (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-the-command-to-display-the-members-of-a-group-4175527311/)

dmreines 12-04-2014 07:39 AM

What is the command to display the members of a group?
 
What is the command to display the members of a group?

jdkaye 12-04-2014 08:01 AM

It's called ...... group! (surprise, surprise). Check out "man group" and you'll see how it works.
jdk

JeremyBoden 12-04-2014 08:17 AM

/etc/group is not reliable if you want the members of a group.

You need to find the GID in /etc/group and then check /etc/passwd for occurrences of that GID.
This will give you a list of user names (or UID's).


All times are GMT -5. The time now is 08:23 PM.