How to Add and Remove a user on CentOS

banner dedicated


In this tutorial, we will show you how to add and remove a user in CentOS 7.


Requirements :


Add a new user in command line

adduser username


Set a password for this user

passwd username


Delete a user in command line

Delete user without his files located in /home directory

userdel username


Delete user with all his files located in /home directory

userdel -r username


banner dedicated


Colo-Serv Communications has written 32 articles

Premium Dedicated Hosting Services