Home>Article>Operation and Maintenance> Incorrect root user password in linux
Problem:
When entering the command su root, the password is incorrect no matter how hard I enter it.
Reason:
Because the newly installed Linux system does not set a password for root.
Free learning video tutorial sharing:linux video tutorial
Solution:
First enter the following command:
sudo passwd root
[sudo] password for sam(username): Enter the password for the current login liunx username
Enter new UNIX password: Enter the new password and confirm, at this time The password is the new root password
Retype new UNIX password: Confirm the new root password again
Pop-up: passwd: password updated successfully
Then enter root permissions That’s it, as follows:
su root
Switch to a normal user, for example, the configured user name is sam
su sam
Recommended related articles and tutorials:linux tutorial
The above is the detailed content of Incorrect root user password in linux. For more information, please follow other related articles on the PHP Chinese website!