Results 1 to 4 of 4

Thread: GRUB: How to enable a password to boot operating systems

  1. #1
    Join Date
    Apr 2008
    Posts
    392

    GRUB: How to enable a password to boot operating systems

    GRUB has already discussed on several occasions, but perhaps not everyone knows that This excellent boot manager, which start automatically with some of the most popular Linux distro (eg. Ubuntu), is equipped with advanced features for safety that allows all of us to sleep more relaxed, much more relaxed about the degree of confidentiality and privacy of data of the OS.

    So if you have not yet understood, we will see how to enable a password to boot the operating systems through GRUB. Need to do some 'of "hacking' in the terminal, but nothing quite tremendous. Here's how:
    1. Open the terminal

    2. Type sudo grub and press the Enter key

    3. Key md5crypt, press the Enter key, type your password and pin somewhere the output of command (because it is the password you have to use)



    4. Create a backup copy of the file /boot/grub/menu.lst

    5. Back in Terminal, type sudo gedit /boot/grub/menu.lst and press the Enter key



    6. Go to the line preceding the written BEGIN AUTOMAGIC KERNEL LIST and paste password-md5 [the result of the previously noted] (as you can see from the screenshot that opens this post)

    7. Go to the row that happens the writing on each bootable system (ie: "title Windows Vista / Longhorn loader") and paste lock (as you can see from the screenshot a few lines above)



    8. Save the file and restart the computer.


    That's all, folks! From now on, to access your operating system and to edit the GRUB menu anyone will need to enter a strong password. And then they say that maintaining a secure operating system is a difficult task

  2. #2
    Join Date
    Apr 2008
    Posts
    395

    Re: GRUB: How to enable a password to boot operating systems

    I do not know the command md5crypt, but I assume that in order to obtain the hash of the password you must enter after the command, the desired password ... right?

  3. #3
    Join Date
    Apr 2008
    Posts
    438

    Re: GRUB: How to enable a password to boot operating systems

    Hmm, what if someone manages to bypass or replace the Grub bootloader? then the password lock would not matter.

  4. #4
    Join Date
    Apr 2008
    Posts
    392

    Re: GRUB: How to enable a password to boot operating systems

    To lock the recovery mode entries it is best to change the line to lockalternative = false lockalternative = true. This will lock down all future entries recovery mode as well even if you update the kernel.

Similar Threads

  1. Replies: 9
    Last Post: 03-01-2012, 07:40 AM
  2. Grub is unable to boot CentOS, hangs at the Grub prompt
    By Man-Than in forum Operating Systems
    Replies: 5
    Last Post: 07-05-2011, 12:17 PM
  3. Edit grub/defaults/grub file on triple-boot system
    By Hishem-Remashiya in forum Operating Systems
    Replies: 5
    Last Post: 14-11-2010, 06:44 AM
  4. Two Operating systems on same PC
    By Bernd Mechsner in forum Operating Systems
    Replies: 4
    Last Post: 08-12-2008, 12:55 PM
  5. Operating Systems
    By ikast45 in forum Operating Systems
    Replies: 2
    Last Post: 05-06-2008, 02:27 PM

Tags for this Thread

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
  •  
Page generated in 1,713,564,244.47002 seconds with 17 queries