Users Online

We have 10 guests online
add user or group linux ubuntu PDF Print E-mail
Written by Zack MIlls   
Friday, 08 January 2010 12:48

To add a user. NOTE: do not use the useradd command.

# sudo adduser <username>

To see the options for adding a user try the man command.

# man adduser

 

Groups

You might also wish to create a new group for your users.

# sudo addgroup <groupname>

To add a new user to a existing group you would do this:

# sudo adduser <username> audio

To add an existing user to an existing group you can use the same command:

# sudo adduser <username> <groupname>

or

# sudo usermod -G <groupname> <username>