Linux sudo password is random, that is, there is a new root password every time you boot up. The method to set a new password is: 1. Enter the command "sudo passwd" in the terminal, and then enter the password of the current user , press the "Enter" key; 2. Re-enter the new password in the terminal and confirm it.
The operating environment of this tutorial: ubuntu 16.04 system, MySQL version 5.7, Dell G3 computer.
What is the password for linux sudo?
Ubuntu's default root password is random, that is, there is a new root password every time you boot up.
Solution:
1. You can enter the command "sudo passwd" in the terminal, then enter the current user's password and "Enter".
#2. The terminal will prompt us to enter a new password and confirm it. The password at this time is the new root password.
3. After the modification is successful, enter the command su root and then enter the new password.
Recommended study: "Linux Video Tutorial"
The above is the detailed content of What is the linux sudo password?. For more information, please follow other related articles on the PHP Chinese website!