Thursday, January 9, 2014

Add And Delete Users On Linux VPS Or Machine







Add and Delete New Users on Ubuntu VPS or Ubuntu based Machine .


Most often we need to share our VPS with someone else , or sometimes we often need to Add New Users to our Ubuntu Machine or VPS to safeguard ourselves from system-destroying commands.

To perform root tasks the user need to have root access . But, if you are logged in with non-root access you can append sudo at beginning of the command to upgrade your privilege while running the command. 

SUDO itself is very useful command as :
    • It prevents user to execute system destroying commands.
    • All commands used with sudo appended get stored in the system and can be later reviewed if needed.
IF YOU NEED YOUR MACHINE OR VPS FOR BASIC LIMITED NUMBER OF TASKS . It's BETTER NOT TO USE ROOT ACCOUNT.

ADD New User to Ubuntu Machine or VPS


  • Open Terminal on Machine or on VPS .
  • Type the following command and change the new-user field with your desire user-name.
sudo adduser newuser
    • Now type and confirm your password.
    • File the further details required or just press Enter and the system will take default values for the field.
    • When asked press Y to save the information .
  • Now exit by typing EXIT and Login with the New User.

Delete users from Ubuntu Machine or VPS

  • To delete an user from Ubuntu machine or VPS , identify the user-name and tyoe the following command
sudo userdel user-name
  • Now if you want to remove user's home directory 
sudo rm -rf  /home/user-nam
e

0 comments:

Post a Comment

Popular Posts

Blog Archive

Powered by Blogger.

Followers

Search This Blog