Since their inception in 1991, Linux distributions have made significant advancements. Linux is widely used in the IT industry, including embedded systems, robotics, and networking. Compared to its rivals, Linux has established itself as a superior platform. In addition, advancements in the graphical user interface (GUI) have made Linux distributions more prevalent in people’s daily lives. Ubuntu, which is renowned for being quick, cost-free, and safe, is one of the most user-friendly Linux distributions. Consider using Ubuntu on a system that receives several daily users. In that scenario, creating multiple users is advised since it will create distinct directories for your critical files and guarantee that you won’t unintentionally change anyone else’s data. We mentioned below are the steps to create User in Ubuntu 22.04 or 20.04 using GUI or Terminal.

Steps to create User in Ubuntu 22.04 or 20.04 using GUI or Terminal

Acess Terminal

Step 1: If you are using a CLI interface of Ubuntu 22.04 Server or want to use the Terminal app on GUI Linux to create a new user, then first access the same. Those who are using a GUI Ubuntu Desktop can use the keyboard shortcut Ctrl+Alt+T.

Add a new user on Ubuntu 22.04

Step 1: Now, use the adduser command in the terminal to add a new user. The command itself is self-explanatory, simple to remember, and requires sudo and the name of the user you wish to add. Step 2: The system will prompt you to input your user password as you run the command in order to complete it. Type the password you want to use to secure your newly formed user after that. Step 3: Once the password is set, it further asks for some more information such as the Full name of the user, phone number, and others. If you want to set them then enter the required values otherwise simply press the Enter key again and again until you get the “Is the information correct? [Y/n]” question. Type Y and hit the Enter key again to create the new user.

Check user added successfully or not

Step 1: Now, to confirm that the user has been created successfully, use the given command: Step 2: Replace the user with the one you have created in the above command.

List all users on Ubuntu 22.04 or 20.04

Step 1: Whereas to list all available users, we can use: Step 2: For only all normal (non-system etc) users:

Assign Sudo to a user

Step 1: Now, if you also want to give sudo rights to your newly created so that it can execute the command with Admin rights then that is also possible. Simply, add your user to the sudo group.

Remove sudo rights

Step 1: Well, maybe later you want to revoke or remove the sudo access given to the created or from any existing user. For that we can go for the given command syntax:

Change user name

Step 1: The username can be easily changed using Step 2: However, this is only possible if the user name to be changed is currently not active.

Delete a user from Ubuntu 22.04

Step 1: Perhaps later you don’t require some user on your Ubuntu Linux system, in such a case we can delete them even the one you have created. For that the command syntax will be:

Add a User account using Ubuntu 22.04 GUI

Step 1:Then select the account type. The default is a Standard account, which should be enough for most use cases, especially if you need a limited account to test. If further authorizations as an admin or sudo are required later, you can also change the role later from Standard to Administrator. Step 2: The user name and complete user name are then set. The user name is automatically generated based on the entire name when you fill it in. There are no spaces in this. Step 3: Finally, controlling password distribution is still required. When a user logs in for the first time, you can let them choose their own password. For the new user, you can set it manually by yourself. Step 4: The strength of the password will evaluate by the system using colored bars. If you prefer to have a random password generated, click on the small icon at the end of the password field. Step 5: After you have set all the options, click on the Add button at the top right of the dialog. Provide your system password to execute the task. You will then be taken back to the main window. There you have another opportunity to check the settings for the new user account and, if necessary, to make corrections.

Final Words

We hope you like our article on how to create User in Ubuntu 22.04 or 20.04 using GUI or Terminal. On Ubuntu 22.04 or 20.04, we can add users with varied rights, such as one with sudo and another without, just like on Windows. This enables numerous users to collaborate on the same system while maintaining exclusive access to individual files and directories. The standard/regular user account cannot access any other system/user account’s files, but the root or Super Admin user may. Even on Ubuntu Linux, creating a new user is not particularly challenging.

How to create User in Ubuntu 22 04 or 20 04 using GUI or Terminal - 40How to create User in Ubuntu 22 04 or 20 04 using GUI or Terminal - 76How to create User in Ubuntu 22 04 or 20 04 using GUI or Terminal - 31How to create User in Ubuntu 22 04 or 20 04 using GUI or Terminal - 97