Ubuntu reset root password

If you forgot root’s password follow these steps to reset it:
1. Reboot, press ESC to get to GRUB boot loader menu
2. Choose from the list kernel with

(recovery mode)

3. From the menu screen choose

"Drop to root shell prompt"

4. By default it gives you read-only filesystem Run this for read/write:

mount -o remount,rw /

5. Run this to change root’s password:

passwd root

Leave a Reply