×

This article covers how you can easily remove or add a new user to your Debian 10 system. One of the most basic tasks that you should know how to do on a fresh Linux server is add and remove users. 

In order to add and delete users on Debian, you need to have sudo rights, or to belong to the sudo group.

To check your sudo rights, run the following command:

$ sudo -v

If no error messages appear, you are good to go, otherwise ask your system administrator to provide you with sudo rights.


How to add a user using useradd ?

Run the following command:

$ sudo useradd <username>

To assign a password to the user, you can use the -p flag but it is not recommended as other users will be able to see the password.

To assign a password to a user, use the passwd command:

$ sudo passwd <username>




More Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on IbmiMedia.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com