Reset Linux Root and Grub Passwords – How to Guide

grublinuxpasswordroot

If we forget our Linux root password, we can change it by changing grub's boot options.

But in this case, we also set a grub password and forgot both passwords. How can we recover both?

Best Answer

Boot from a LiveCD, then mount the / harddrive partition. You can now chroot into your harddrive and just run passwd as root there changing the root pw. That's also the way to change to grub password.

Related Question