Ubuntu root is disabled by default and no root password is required during installation. To use, set the password to root, sudo passwd root. If only the ordinary user password forgotten, with root can be modified. If the root password is forgotten, enter single-user mode.
Enter single-user mode:
1, boot to the grub waiting interface (grub loading, please wait ... Here, press ESC to enter the boot menu, select the appropriate kernel version of recovery Mode, and press the E key to enter the edit state.
2, move the cursor, the "RO recovery nomodeset" modified to "RW single Init=/bin/bash" After the ctrl+x can be entered into one-user mode,
3, then we can use the command passwd username to change the password.
See: [Email protected] (none):/# immediately enter "passwd" Return!
See: Enter new UNIX password: enter "123" Now!
See: Retype New UNIX password: enter "123" Now!
The new password becomes "123".
4. Enter the "reboot" carriage return! You can also Ctr Alt Del. Anyway, restart it!
Ubuntu forgot password, forgot root password solution