If you forget the Ubuntu user name or password, follow these steps: 1, move up and down at startup, select (not press Enter) Repair Mode similar to this "Ubuntu-x.x.xx.xx-generic (recoverymode ), then press e. 2, in the Level 2 menu select a kernel line, such as: "kernel/boot/vmlinux-x.x.xx-xx-genericroot = UUID = ae424e-bod0-475c-2
If you forget your Ubuntu user name or password, follow these steps:
1. move up and down at startup, select (not press Enter) a repair mode similar to this "Ubuntu-x.x.xx.xx-generic (recovery mode), and then press e.
2, select a kernel line in the Level 2 menu, such as: "kernel/boot/vmlinux-x.x.xx-xx-generic root = UUID = ae424e-bod0-475c-2342433 ro single" Press e to edit.
3. Modify the startup parameter, change ro single to rw single init =/bin/bash, and press Enter.
Example: "kernel/boot/vmlinux-x.x.xx-xx-generic root = UUID = ae424e-bod0-475c-2342433 rw single init =/bin/bash"
4. Start the system by pressing B to enter single mode without a password.
5. Then, use passwd to change the password. The specific command is the passwd user name.