Results 1 to 6 of 6

Thread: grub password

  1. #1
    Join Date
    Mar 2008
    Location
    Cheshire, UK
    Beans
    68
    Distro
    Ubuntu 20.04 Focal Fossa

    grub password

    Tried in General help but no response so trying here...

    I have added the "password --md5 ...." directive before each of the "title" directives in my menu.lst, to prevent unauthorised people from adding/amending parameters on the kernel command line. This works fine.

    However, at start-up if I select the first item in the list, it also enforces the password to be entered before it will boot. I have tried changing the order of the entries, and it is always the first one which requires the password.

    I know this behaviour can be forced by inclusion of a "lock" directive, but my menu.lst does not have this - so why is it requiring the password before it will boot?

  2. #2
    Join Date
    Aug 2009
    Location
    Charleston, SC (USA)
    Beans
    1,779

    Re: grub password

    Did you put the password MD5 above the "###BEGIN AUTOMAGIC KERNEL LIST"?

    That should be the only place that line is placed...

    Also when you edit anything about GRUB you always need to run
    Code:
    sudo update-grub
    Hope that helps,
    Caboose
    "When our actions do not, our fears do make us traitors." -- Shakespeare
    "Unless someone like you cares a whole awful lot, nothing is going to get better. It's not!" -- Dr. Seuss


  3. #3
    Join Date
    Mar 2008
    Location
    Cheshire, UK
    Beans
    68
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: grub password

    thanks, that has fixed it.

  4. #4
    Join Date
    Aug 2009
    Location
    Charleston, SC (USA)
    Beans
    1,779

    Re: grub password

    Anytime. Glad it was any easy fix.
    "When our actions do not, our fears do make us traitors." -- Shakespeare
    "Unless someone like you cares a whole awful lot, nothing is going to get better. It's not!" -- Dr. Seuss


  5. #5
    Join Date
    Aug 2010
    Beans
    6

    Re: grub password

    I found to two posts of about grub password. But I dont get a good answer for my problem.
    I want to block strangers from passing through Grub menu.
    My /boot/grub/menu.1st is shown below


    Edit: bodhi.zazen - removed a lengthy grub.conf


    Now the password protection is not working. What should I need to do for preventing others from accessing grub or OS. I need to ask a password when we press enter in grub menu. Please Help.

    Thanks for anyone who helps
    Last edited by bodhi.zazen; July 25th, 2011 at 06:53 PM.

  6. #6
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: grub password

    Quote Originally Posted by muralysunam View Post
    I found to two posts of about grub password. But I dont get a good answer for my problem.
    I want to block strangers from passing through Grub menu.
    My /boot/grub/menu.1st is shown below


    Edit: bodhi.zazen - removed a lengthy grub.conf


    Now the password protection is not working. What should I need to do for preventing others from accessing grub or OS. I need to ask a password when we press enter in grub menu. Please Help.

    Thanks for anyone who helps
    First, please use the default font size and text when posting.

    Second, please do not post on other , old threads, start your own.

    Third , please do not post long configuration files like that, use attachments or post only the relevant section. As yours looked like the defaults, it did not add much beyond length to your post.

    Fourth see ;

    https://help.ubuntu.com/community/Gr...20command-line

    http://ubuntuguide.net/how-to-setup-...-grub2-entries

    Or fall back to grub 1
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

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
  •