I've used the command grub-mkpasswd-pbkdf2
in order to encrypt my password, then I took the hashed password and placed it in my Ubuntu 14.04 /etc/grub.d/00_header
:
cat << EOF
set superusers="itaig"
password itaig grub.pbkdf2.sha512.10000.blah.blah
set superusers="lel"
password lel P@ssw0rd
export superusers
EOF
And at the end I ran update-grub2 to update grub. After reboot, I get a password prompt, when I use the user with the encrypted password I get an error and I'm unable to log into grub to continue the boot process. When I use the user with the cleartext password I am able to log into grub and continue the boot process successfully. What could be the cause for this problem?
Here's a screen shot of the relevant section of /etc/grub.d/00_header
:
The entry for user "lel" which has an unencrypted password works like a charm. Thanks