How to create a new user on Ubuntu?

To create a new user on Ubuntu, follow these steps:

  1. Open the terminal.
  2. Use the following command to create a new user:
sudo adduser username

(Please replace “username” with the username you want to create)

  1. Enter the password for the new user. The system will ask you to re-enter the password for confirmation.
  2. Please enter any additional information about the new user, such as their full name, phone number, etc. These details are optional and you can also simply press Enter to skip.
  3. After confirming that the information is correct, type “Y” and press Enter.
  4. After successfully creating a new user, you can use the following command to assign them admin privileges:
sudo usermod -aG sudo username

Please replace “username” with the username you created.

  1. The new user has been successfully created and now has administrator permissions. You can use the following commands to switch to the new user account:
su - username

Please replace “username” with the username you have created.

You can create a new user on Ubuntu using the above method.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds