22

How do I create a new user account on Ubuntu?

Zanna
  • 72,312
Sarah Robertson
  • 229
  • 1
  • 2
  • 4

2 Answers2

25

useradd -m -g users <username> will create the user and add them to the "users" group.

  • -m adds a user directory (i.e., /home/<username>).
  • -g adds that user to a specified group. This is optional.

Look into the useradd reference for more info on using the command.

Brennan
  • 103
aborsim
  • 351
2

Follow these steps to create a new user in Ubuntu :

  1. Open Terminal by pressing Crtl+Alt+T or Search 'Terminal' in Dash.
  2. Execute the following command in terminal

    sudo apt-get install gnome-system-tools

  3. Search "Users" in Dash

enter image description here

  1. Click and it will run the Users and Groups :

enter image description here

  1. Click Add Button to add new user

enter image description here

Faizan Akram Dar
  • 4,569
  • 1
  • 25
  • 31