How to set the root password

Creating the root account: When you install the system, root account has not been activated for you to use, that is, the root account is hidden, but rather to complete some tasks require root privileges using a combination of initial user with sudo. The advantage of this is that you have to use root to prevent some of the primary management systems, while fully allow another account to act as a super-user, but also to protect the security flaws of your system. If you need to use the root user to complete some work, then use the following command to activate the root user: Act I: In a terminal type: sudo passwd root requires you to enter the root password twice after the restart after a user can log root. Exit root access method: $ exit If you want to disable the root account: sudo passwd -l root Act II: 1, restart the computer, select recovery mode 2, find the bottom of the root option 3, create a root user in the root user recovery mode , enter: passwd root

Guess you like

Origin www.cnblogs.com/xiaodoujiaohome/p/11403725.html