Linux tips
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:

  1. Open a shell
  2. 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!!

Leave a Reply

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close