Categories: Ubuntu

How to Create New User on Ubuntu 22.04

The cloud server originally contains a user named system, however, if you wish to create a new user on your system to perform system administrative actions then you can generate one using two possible ways. Both of these methods have been discussed here in this blog.

How to Create New User on Ubuntu 22.04

You can create a new user on your system using two methods which are as follows.

  • Using GUI
  • Using Terminal

Method 1: Using GUI
Follow the steps provided below to learn how you can use GUI to create a new user.

Step 1: Open the Users Settings
Click the Applications’ menu and type “user” in the search bar and hit search.

Sponsored

Step 2: Get Administrative advantages
Open “users” settings and press unlock so that you can perform actions as an administrator.

Step 3: Enter password
After unlocking you will be asked to enter your authentication password.

Step 4: Add New User
When you authenticate, you will see an ‘Add User’ option in the top right corner.

Step 5: Enter Credentials
Now enter the credentials of the new user such as full name, and password.

Step 6: Press Add
Once the credentials have been added, press the ‘Add’ button in the top right corner.

Step 7: Authenticate again
Again enter the password of the current user and authenticate to proceed.

Sponsored

After authenticating, the new user will be added.

A new user was successfully added through GUI.

Method 2: Using Command Line
This method is appropriate for users who use the terminal more often. This method has been elaborated step-by-step.

Step 1: Add user
The first step in this method is to use the command given below to add a new user to the system.

$ sudo adduser username

For instance, here we will add a user by the name ‘marry’ so the command above will look like this.

$ sudo adduser marry

Output

It will ask you to set new password for the newly created user twice. Set the password and provide the user information if you want. Now enter ‘Y’ to continue. The user will be added to the system successfully.

Step 2: Add user to a group
Although this step is completely optional if you wish to add the new user to a particular group then use the following command.

$ sudo usermod -aG cdrom marry

The above command adds the user marry to the group named cdrom.

Step 3: Verify the addition
Now to verify the successful addition of the group along with the group information, use the command provided below. This step is also optional.

$ id marry

Output

The output displays the group information of the new user.

Conclusion

You can add a new user on Ubuntu 22.04 by either using the GUI or the command line. In the case of GUI, go to user settings and add a new user from there, after unlocking the administrative advantages, whereas, if you use the command line then use this command $ sudo adduser username. If you wish to add the new user to a group then use the command $ sudo usermod -aG cdrom marry.

Ubuntu Server Admin

Recent Posts

Ubuntu Weekly Newsletter Issue 868

Welcome to the Ubuntu Weekly Newsletter, Issue 868 for the week of November 24 –…

3 hours ago

Industrial cybersecurity: the journey towards IEC 62443 compliance

Industrial cybersecurity is on every CISO’s mind as manufacturers strive to integrate their IT and…

9 hours ago

Xfce 4.20 Pre2 Released

Dec 01,2024 Xfce 4.20 Pre2 Released Dear Xfce community, I am happy to announce the…

14 hours ago

How to Install Miniconda on Ubuntu 24.04

Anaconda is a package, dependency function, and environment management. As environment management for programming languages,…

2 days ago

Entra ID authentication on Ubuntu at scale with Landscape

In September we introduced Authd, a new authentication daemon for Ubuntu that allows direct integration…

5 days ago