PDA

View Full Version : Consistent failure at password protecting GRUB



ben54
February 18th, 2014, 02:48 AM
OK, so I've tried several times to password protect GRUB. I've used the guide found here (http://www.howtogeek.com/102009/how-to-password-protect-ubuntus-boot-loader/). The last time around, I even made a username with a cleartext account just to see if the hash was causing a problem, but no matter what I try,I get error messages. The most recent one that I get upon starting up says "error: SecureBoot forbids loading module from (dh0,gpt2)/grub/x86-64-efi/password.mod". After I correctly enter my username and password, it always prevents me from logging in.

deadflowr
February 18th, 2014, 03:01 AM
That guide seems to be missing some crucial steps.
This is probably better
https://help.ubuntu.com/community/Grub2/Passwords

My own advice would be to try adding an entry for something like the recovery mode first, then try expanding it to other menuentries.

ben54
February 18th, 2014, 05:23 AM
Thanks for your reply. :-) I just finished following those instructions to the letter (or at least I think I did.) I saved everything, restarted, and as soon as it booted up, I saw "error: not an assignment." I entered my name and password, and received "error: access denied."

deadflowr
February 18th, 2014, 05:31 AM
Did you update grub?
ala

sudo update-grub
Nothing in grub changes until this is run.

Edit: If you have run update-grub and the problems still arises, would you please post the out for the files you edited.
00_header and 10_linux and 39_os-prober and any others if you have edited them as well.
USE CODE TAGS (http://ubuntuforums.org/showthread.php?t=2171721) , please.

Also, if you want to edit out the password stuff, that's fine, as long as the rest is there as is.