Linux What Groups Is a User In?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A user in Linux can be part of one or more groups. To view which groups a user is part of, you can use the groups command:
$ groups <username>
This command will list all the groups that the user is a part of, including the primary group of the user.