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

Incorrect root user password in linux

王林
Release: 2020-02-15 13:23:03
Original
4615 people have browsed it

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
Copy after login

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
Copy after login

Switch to a normal user, for example, the configured user name is sam

su sam
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template