You need to log in to create posts and topics.

How To Add & Delete Users in Ubuntu?

When you create a new Ubuntu system, the root account will be created to manage the Ubuntu system. The Root is the highest level of Authority. Simply "Root" account is the superuser or administrator of Ubuntu system. With the root access, you can add the new user or remove the existing user. In this simple tutorial, we simply provide the best methods to add the user and remove the user on your Ubuntu system.

This tutorial is written based on Ubuntu 18.04 LTS version and applicable to Ubuntu 18.10 & 19.04 versions too.

Adding a User:

You need to sign in to your pc with root access. Then follow the below command to add any user to your Ubuntu system.

adduser new_user

Replace the "new_user" with the name of the user that you want to add to your Ubuntu system.

Adding a User without Root Access:

You can also add the user to your system even though you are not logged in to your root account. Just copy the below command and execute in the terminal.

$ sudo adduser new_user

Replace the "new_user" with the name of the user that you want to add to your Ubuntu system.

You will be prompted to set the password for the new user. Set the password and skip all those remaining fields to finalize the process.

Deleting a User:

Root access needs, The follow the below command to remove the user from your Ubuntu PC.

deluser new_user

Replace the "new_user" with the name of the user that you want to remove from your Ubuntu system.

Deleting a User without Root Access:

Follow the below command to remove the user without root access.

sudo deluser new_user

Replace the "new_user" with the name of the user that you want to remove from your Ubuntu system.

That's it. This is the simplest tutorial to add and remove users from Ubuntu PC. If you have any queries and then add your comment in the below reply section. If you want to surf our blog and then visit our HomePage.