This article is reproduced from: [Baidu experience: modify the default password of root in Ubuntu operating system] (http://jingyan.baidu.com/article/5225f26b0ac250e6fb09084e.html)
One, Ubuntu
The default root password is random, that is, there is a new root password every time you boot. We can enter the command sudo passwd in the terminal, and then enter the password of the current user,
enter,
Enter new UNIX password:
Set root password
Retype new UNIX password:
repeat
=========================================================================
Execute in Shell after logging in with the user created during installation
sudo passwd root Enter Password:
Then enter the user password just created and press Enter
Enter new UNIX password:
At this time, enter the root password to be set twice and you will see
password updated successfully!
Recommended Posts