?
Solved

viewing group membership

Posted on 2005-04-13
2
Medium Priority
?
271 Views
Last Modified: 2012-05-05
Is there an easy way in Linux, to list who is a member of a specific group?
Also, is it possible to list what members are a part of what group?

Currently I'm viewing the /etc/group and /etc/passwd to get this info. Didnt know if there was a more robust way
thanks
0
Comment
Question by:dissolved
2 Comments
 
LVL 16

Accepted Solution

by:
manav_mathur earned 2000 total points
ID: 13774138
If possible, you could use the groups command.
groups <userid>

shows the groups that the use belongs to
0
 

Author Comment

by:dissolved
ID: 13774204
thats the command I was looking for thanks. I kept trying  group <username> and it wasnt working. Forgot the "s" on the end.
Thanks
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month16 days, 3 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question