Pages

Tuesday 5 February 2019

HOW TO ADD AND REMOVE USER IN UBUNTU


HOW TO ADD AND REMOVE USER IN UBUNTU

The following are the steps used to ADD users in ubuntu

step 1 : open the terminal and login as admin user (root)
            command: sudo su

step 2 : To Create an new user
            command: adduser <username>

step 3 : To check user created r not
            command: cat /etc/passwd

step 4 : change to created user
            command: su <user name>
  
The following are the steps used to REMOVE users in ubuntu
 
step 1:To delete an account named richard, simply run the commands below.
           command : deluser richard

Running the commands above will delete the account but won’t delete the user home directory and all its content..

step 2: To delete an account and also delete its home directory, run the commands below

             command : deluser --remove -home richard

Running this command will completely remove the user home directory as well.

No comments:

Post a Comment