Users and groups in Linux

Some useful commands under Linux (and I always forget the right syntax).

Basic, but useful:

  • “adduser <user>” adds an user to the system
  • “groupadd” adds a group
  • “groups <user>” lists all groups a user is in
  • “usermod -a -G <group> <user>” adds an existing user to an existing group
  • “cat /etc/passwd” lists all users on the system
Advertisements

Posted on January 1, 2011, in Linux, Technology, Ubuntu. Bookmark the permalink. 1 Comment.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com 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

%d bloggers like this: