Su: authentication failure solution in Linux

Time:2021-12-2

When installing Linux virtual machine with parallels on MAC recently, it is found that the default user is parallels. When you want to switch the root user, you will be prompted that authentication fails:su: Authentication failure, record the solution today.

Screenshot of error reporting

Su: authentication failure solution in Linux

Reset root password

Enter the terminal and enter the commandsudo passwd root, follow the prompts in the figure below to represent success

Su: authentication failure solution in Linux

test result

Enter the terminal and entersu root, enter the password just set and switch normally, as shown in the following figure:

Su: authentication failure solution in Linux

As you can see in the figure above, you have successfully switched to root.

This work adoptsCC agreement, reprint must indicate the author and the link to this article

If there is anything wrong, please point it out. Thank you very much.