how to list of Groups on Ubuntu server,

To list all the groups, including ones used only by the system. Just type:

cat /etc/group


To list all the groups of which the current user is a member.



To add a user use

useradd name


To add a user to a specific group use

usermod -G name-of-group -a ‘name-of-user


For more information on all these – and it’s really a good idea to make sure you know what you’re doing before doing system-level commands — you can type:

info command-name


For instance “man useradd”.

man command-name


About zephyr9000

Happy sailer
This entry was posted in group and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s