Forgotten Ubuntu Root Password
- From GRUB, choose Ubuntu Repair Menu—> Choose root—> passwd ‘username’ (or just plain passwd)
- Once updated, type reboot
Cmd Line Root Prompt
- OR – type E (for edit) on the Ubuntu Image (in the grub menu)
- Highlight the line that begins
kernel .........
orlinux ........
, press e - Go to the very end of the line and add
rw init=/bin/bash
-
Press Enter, then press b to boot your system. Your system will boot up to a passwordless root shell.1
-
Now issue the command
passwd username
*where “username” is the user for which you want to change the password.
Leave a Reply