What is the default root user password for the newly installed Ubuntu system? How do I change it?
Title, I believe many newcomers to the Ubuntu system will encounter this problem, so how can we solve this problem? Ubuntu did not let us set the root user password during the installation process, but when we need to get the root user's permission, we will enter the root user's password, for example,
That made us confused. When we installed the system just set up a user name and user's password, and did not set the root user password Ah, how to input it? You may be holding a trial mentality, enter the user's password you created, the result of course, the password is wrong!!!
- Cause: Before setting, the default root password in Ubuntu is random, that is, each boot will have a new root password, so the root password is not determined at this time;
- WORKAROUND: Open the terminal in Ubuntu (Ctrl + ALT + T), enter
sudo passwd
, such as, and then repeat twice you want to set the root password, and then will prompt the password has been updated;
- Test whether the settings are successful: console input
su root
, and then enter the root password just set, test whether the modification succeeds, as shown in success;
At this point, the problem is solved, both to solve your root user password doubts, but also let you master the method to modify the root password.
Modify the default root user password in Ubuntu