Adding a new user in Ubuntu 22 is very easy a should take around 1 to 2 minutes.
User accounts can only be create from the root user or an account with sudo permissions. This guide will assume you are using an account with sudo permissions.
Lets get started creating a new sudo user account in ubuntu.
Create the User Account
To create the user account, use the following command, making sure you replace aoituser with your desired username
sudo adduser aoituserAfter you run this command you should get output similar to this:
Adding user `aoituser' ...
Adding new group `aoituser' (1001) ...
Adding new user `aoituser' (1001) with group `aoituser' ...
Creating home directory `/home/aoituser' ...
Copying files from `/etc/skel' ...
New Password:Next you will be required to create a password, enter your desired password and press enter, you will be asked to confirm the password to ensure they match.
You should then be prompted with the following:
Changing the user information for aoituser
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]You can just leave these as default, they don’t really make a difference. And then enter Y at the end to save the details.
Great! You created a new user account and secured it with a password in ubuntu.
Adding a User to the sudo Group
Using the usermod command we will add the user we created above aoituser to the sudo group.
Again remember to replace aoituser with your username
usermod -aG sudo aoituserOn Ubuntu all users in the sudo group inherit full sudo privileges
All done! Your new user account has been created and has sudo privileges





