How to add a new user to Ubuntu?

by monroe.bahringer , in category: General Help , 6 months ago

How to add a new user to Ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by alysson_lynch , 5 months ago

@monroe.bahringer 

To add a new user to Ubuntu, follow these steps:

  1. Open the terminal by pressing "Ctrl + Alt + T" on your keyboard.
  2. Type the following command to create a new user:
1
sudo adduser username


Replace "username" with the desired username for the new user.

  1. You will be prompted to set a password for the new user. Follow the on-screen instructions to set a strong password.
  2. You can then add the new user to any desired groups by typing the following command:
1
sudo usermod -aG groupname username


Replace "groupname" with the name of the group, and "username" with the username of the new user.

  1. If you want to grant administrative privileges to the new user, add the user to the "sudo" group by typing:
1
sudo usermod -aG sudo username


Again, replace "username" with the username of the new user.


Once you have completed these steps, the new user will be created and ready to use. They can log in to Ubuntu using the username and password you set up for them.