Hi, i wanna protect "Advanced Options for Ubuntu" as well as pressing "e" and "c" with a password. How can i achieve that without having to be prompted for the password when booting in my OS.
Thanks.
Hi, i wanna protect "Advanced Options for Ubuntu" as well as pressing "e" and "c" with a password. How can i achieve that without having to be prompted for the password when booting in my OS.
Thanks.
I guess you can check Grub man page, look for lockalternative=true Alternatively, use HDD encryption.
Check out the security section in the man page. To set your menu entries.
https://gnu.org/software/grub/manual....html#Security
Then follow this tutorial to set a password.
https://askubuntu.com/questions/6562...oect-grub-menu
Take the output of grub-mkpasswd-pbkdf2
Create a new file called: etc/grub.d/40_custom
Contents should look like this:
set superusers="username"
password_pbkdf2 username hash
Update. sudo update-grub
Add menu specific commands here:
menuentry "May be run by user1 or a superuser" --users user1 {
set root=(hd0,2)
chainloader +1
}
Any non-restrictive menus can be set like this
--unrestricted ${CLASS}
Last edited by EuclideanCoffee; August 20th, 2020 at 10:06 PM.
Bookmarks