Home>Article>Operation and Maintenance> Incorrect root user password in linux

Incorrect root user password in linux

王林
王林 Original
2020-02-15 13:23:03 4422browse

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

Incorrect root user password in linux

[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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn