the root password is not set when Ubuntu 12.04 is installed, the root account is not used during logon. When we use the root permission, we generally use the sudo command. So when we have installed Ubuntu 12.04, what is the default password for the root account? the answer is simple: the root account has no password. |
Therefore, if you want to change the root password, the following steps will show you how to do this.
We need to open the terminal first,
Note: The password entered during sudo execution is your current user password, not the root password. In addition, make sure that your users have such permissions. The configuration file is in/etc/sudoers.
Create a password for the root user:Sudo passwd Root(Or sudo passwd) # enter the root password as prompted. the root password should be different from the password of other users, otherwise it will cause some trouble.
Run the su root command and enter the new password.