Is there a way I can password protect grub menu entry- e.g. if I dual boot with Windows 7 can I set it so that a password is needed to boot into Win 7?
Secondly I would also like to protect grub menu entries being changed if possible.
thanks
12.04grub2
Is there a way I can password protect grub menu entry- e.g. if I dual boot with Windows 7 can I set it so that a password is needed to boot into Win 7?
Secondly I would also like to protect grub menu entries being changed if possible.
thanks
Best Answer
There is a Wiki page on Ubuntu covering all type of password related topics.
Basically, edit your configuration
Add this at the bottom of
00_header
:That way the edits will be password protected, with that user and password.
Now, let's protect the Windows entry. Open
30_os-prober
and find this line:On that line, add
--users
, so it ends like this:Be careful on not removing the ending slash
\
.Save and close, and then run this on a terminal:
You can also encrypt your password with
grub-mkpasswd-pbkdf2
. Please take a look at the wiki for more details.