How to Add and Remove a user on CentOS

How to Add and Remove a user on CentOS 7

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


Colo-Serv Communications has written 20 articles

Premium Dedicated Server in Canada

Leave a Reply

Your email address will not be published. Required fields are marked *

twelve + eleven =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>