Reboot machine;
Press ‘Esc’ to get to the GRUB menu;
Select the image;
Press ‘e’ to edit;
Change the kernel line from ‘ro’ to ‘rw init=/bin/bash’

From:

GRUB1

To:

GRUB2

Press ‘ctrl+x’ to boot;

From the bash shell:

passwd <username>

Leave a Reply