Recover root password for ubuntu
If you got lost of your root password in ubuntu, due to its security setting that even if you enter into recovery mode, it can not make change to root password.
Here is a solution to make it happen.
enter recover mode at GRUB screen.
select “drop to root shell” option. A shell prompt will be displayed at the bottom of screen with root user, At this time you can not change password of root, you have to do this first:
mount -rw -o remount /
passwd rootto make change to your root user as you wish.