Check Group Of A User

We can check group(s) a user is part of by following methods -

Checking /etc/group File

$ cat /etc/group

Using groups Command

$ group {USER_NAME}

Example -

jungle@Server01:~$ groups jungle
jungle : jungle sudo docker

Source: GeeksForGeeks

Last updated