-1

How do you add a user in ubuntu using the terminal

1

2 Answers 2

3

Here are the commands to add a new user with the username "newuser"

sudo adduser newuser

sudo passwd newuser

1
  • 1
    Why did you answer yourself? Jan 20, 2016 at 10:42
1

You can do it with the useradd command. Just issue:

sudo useradd new-username

Replacing new-username with the name you want.

Now let's set new-usernames's password:

sudo passwd new-username

You'll be prompted to type the new password twice. Nothing will be displayed on the screen while you do it.

If you want your user to be in groups such as sudo, volume, etc. you'll have to do it manually.

Not the answer you're looking for? Browse other questions tagged .