How to create a new user on Ubuntu?
To create a new user on Ubuntu, follow these steps:
- Open the terminal.
- Use the following command to create a new user:
sudo adduser username
(Please replace “username” with the username you want to create)
- Enter the password for the new user. The system will ask you to re-enter the password for confirmation.
- 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.
- After confirming that the information is correct, type “Y” and press Enter.
- 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.
- 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.