Recovering lost Mac OS password

sudo sh

At prompt enter admin (your) password

passwd root

Now, fix your root password.

exit