Results 1 to 3 of 3

Thread: GRUB Entries Password Protection

  1. #1
    Join Date
    Aug 2020
    Beans
    1

    Exclamation GRUB Entries Password Protection

    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.

  2. #2
    Join Date
    Oct 2014
    Location
    Sydney
    Beans
    Hidden!

    Re: GRUB Entries Password Protection

    I guess you can check Grub man page, look for lockalternative=true Alternatively, use HDD encryption.

  3. #3
    Join Date
    Sep 2014
    Location
    United States
    Beans
    362
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: GRUB Entries Password Protection

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •