Ubuntu system root password retrieval: we still need to install a ubuntu system to set the host name. After the system is installed, click Continue to restart to start the system, you can use a user-defined account to log on to the system. The system root account is not enabled by default because the User-Defined logon user is used during system installation. You need to switch to the root account and reset the root password, then you can use the root account
Ubuntu system root password retrieval:
We still need to install a ubuntu System
Set Host Name
After the system is installed, click Continue to restart to enter the system.
After the startup, enter the system through a custom account
Because the system is installed with a custom login user, and the system's root account is not enabled by default, we need to switch to the root account, and then reset the root password, then you can log on through the root account
Next we simulate forgetting the root password:
After the system is restarted, press the ESC keyboard, select the second Advanced options for ubunt, and then press E (Note: Do not press Enter)
Then move the cursor to the bottomRo recovery nomodesetChangeRw single init =/bin/bash
Then pressCtrl + xOr enterSingle User Mode
ThenCtrl + x or F10 return system advanced optionsThen, Select Restore Mode and press enter to enter single-user mode.
The system enters the single-user mode:
In the same way, we can usePasswd rootChange Password
After the restart, log on using the modified password.