How to list all groups that your Linux user belongs to
cnttbachkhoa , 2010/07/19 15:11 , Linux , Comments (0) , Reads (3121) , Via Original
Large | Medium | Small
Large | Medium | Small
When you are using a linux system, it’s useful to find out what groups you belong to, so you can understand whether you have access to files and directories. This is one of the simplest commands possible. I’m using Ubuntu linux, but this command should work on most varieties of linux.
Quotationgroups <username>
If you don’t enter a username, it defaults to your own username. For instance:
Quotationgeek@ubuntuServ:$ groups
geek adm dialout cdrom floppy audio dip video plugdev lpadmin scanner admin fuse
You can also check the groups for any other user, including root:
Quotationgeek@ubuntuServ:$ groups root
root : root fuse
Related Topics
How to add user to sudoers list
VIM Editor Commands
What does the star after a file name mean?
How to Mount a Remote Folder using SSH on Ubuntu
Linux user management commands
How to change message of the day on Ubuntu
How to auto shutdown your computer in Linux
How to install Subversion with Web access on Ubuntu
How to Tell What Version of Ubuntu You Are Running
How to add user to sudoers list
VIM Editor Commands
What does the star after a file name mean?
How to Mount a Remote Folder using SSH on Ubuntu
Linux user management commands
How to change message of the day on Ubuntu
How to auto shutdown your computer in Linux
How to install Subversion with Web access on Ubuntu
How to Tell What Version of Ubuntu You Are Running
How to Mount a Remote Folder using SSH on Ubuntu
Installing Tomcat 6 on Ubuntu
