How to Find Out Who Belongs to a Unix Group
The Unix operating system has been around since the late 1960's when it was developed by a research division of AT&T. The system has a number of powerful commands that allows users to run programs, track data, and maintain the operating system. One of the key features of Unix is the division of its users into user groups. This allows certain users to have access to system resources, while preventing others. You can find out who belongs to a user group using a simple terminal command.
Instructions
-
-
1
Open up a terminal window. Different Linux/Unix systems will have different ways for doing this. In newer Linux systems, such as Ubuntu, the Gnome GUI (Graphical User Interface) makes this simple. Click on "Applications" at the top of the screen, select "Accessories" from the drop down menu and then "Terminal".
-
2
Determine the name of the group or the group ID that you want to list. This could be built in Unix/Linux groups, such as "root" or "users", or custom made groups.
-
-
3
Type "lid -g NAME" (no quotes) where NAME is the name of the group containing the users that you wish to list.
-
1
Tips & Warnings
If you want to save the list of users to a file, you can redirect the lid output using the "cat" command.
You must be currently logged in as root or superuser in order to lists groups to which you do not belong.