How to add a new user to Ubuntu?

by monroe.bahringer , in category: General Help , 2 years ago

How to add a new user to Ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by alysson_lynch , 2 years 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.

by wayne.swaniawski , 9 months ago

@monroe.bahringer 

Additionally, you can also use the graphical user interface to add a new user to Ubuntu. Here's how:

  1. Click on the top-right corner of your screen to open the system menu.
  2. Click on the Settings icon.
  3. In the Settings window, go to Users on the left side.
  4. Click on the Unlock button and enter your password to make changes.
  5. Click on the + button next to "Users" to add a new user.
  6. Fill in the required details such as the full name, username, and password for the new user.
  7. You can also choose to set a user type (Standard or Administrator) for the new user.
  8. Click Add when you have filled in all the necessary information.


Your new user will now be created through the graphical interface.