Ordinary users to root

Ordinary users to switch to the root user first press the key combination the CTRL + the ALT + T into the terminal interface, the general terminal interface defaults to normal user mode, how to enter the root user first reset root password sudo passwd root to the general population then prompted step by step . (Lost password will find not see the number of passwords. This seemingly is to prevent peeping.)
Root then enter the following methods: 1 , input su, follow the prompts and enter the root password, can log into the root authority. 2 , input sudo su, follow the prompts and enter the root password, can log into the root authority (this command, generally do not need to enter the appropriate root password). 3 , enter su root, then follow the prompts to enter the root password, you can log in to the root authority.
After entering the root you will find back into a pound sign
root user switches to a normal user the following three: 1 , users want to switch back to user root from a user simply execute the command: su user (user installation time is your own user name) 2 , or directly enter exit3, then + or Ctrl D key combination to exit
Disable root login Enter passwd sudo - L root can (just disable the root, but the root password is still preserved), and then execute su root password is found errors (authentication failure), but still have access to sudo su command under root mode. Enable root login again to start the root login, you can execute sudo passwd root (will let you reset the password).
The first hair tutorial in it, if you feel good on the point of likes.

 

Guess you like

Origin www.cnblogs.com/naliang/p/ubunturoot.html