Inactive Tutor answered 04/01/19
How to find out what group a given user has?
2 Answers By Expert Tutors
Most Unix and Linus distributions provide a command called "groups".
With no parameters, it simply returns the name of the groups assigned to the current user. Optionally you can specify a user name as the first and only parameter to the groups command, which will show all groups assigned to that user.
For example, the following displays all groups assigned to you
The following displays all groups assigned to the sys user:
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.