How to Create a New Sudo User in Ubuntu

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 aoituser

After 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 aoituser

On Ubuntu all users in the sudo group inherit full sudo privileges

All done! Your new user account has been created and has sudo privileges

If you require assistance or clarification regarding anything mentioned in the above article, reach out and receive expert support from the highly skilled technical team here at AOIT. We are dedicated to providing exceptional customer service and will be more than happy to assist you.

To initiate a support request, kindly click the “Request Assistance” button and a member of our team will respond to you within 24 hours.

Thank you for choosing AOIT for your technical support needs.

Similar articles you may find interesting...

DNSSEC Featured Image
Uncategorised

What Is DNSSEC and Why It Matters for Your Online Security

When someone types your domain name into a browser, their device must first ask the Domain Name System (DNS) where to find your website. DNS acts like the phonebook of the internet. It translates human friendly domain names into machine friendly IP addresses. The problem is that traditional DNS was never designed with strong security

Read More »
Enforced 2FA
Information

Enforced Two-Factor Authentication (2FA)

Starting Monday, November 18th 2024, 2FA will be mandatory for accessing your account. This is necessary because our dashboard allows Single Sign-On (SSO) to server and hosting control panels, it also contains personal details and billing information. Ensuring the security of your data is our top priority.

Read More »
What is DNS
Domains and DNS

What is a DNS and How Does it Work?

What is a DNS? A domain name system (DNS) is a naming database. In this database, internet domain names are identified and translated into Internet Protocol (IP) addresses. The DNS maps the name people use to locate a website to the IP address that a computer uses to locate that website, creating a connection between

Read More »