Check a user’s group in Ubuntu
August 21, 2013
0
Hello folks,
Sometimes you need to verify if your user belongs to a group with the right permissions to perform a task; this is easily done in the following way:
- Open a shell
- type the following code
groups
this command will show you the groups you belong to (it defaults to the logged user).
You can also use it to find out any other user’s group by simply typing:
groups user_name
Enjoy!!