Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, Just wondering what is the correct format and way to add my encrypted GRUB password to /boot/grub/menu.lst and how do I know/ensure the changes have worked? Thanks....
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    24

    What's the correct way/format to add my encrypted GRUB password to menu.lst?

    Hi,

    Just wondering what is the correct format and way to add my encrypted GRUB password to /boot/grub/menu.lst and how do I know/ensure the changes have worked? Thanks.

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    See info grub -- Security section.

    (In code blocks to preserve formatting)

    Code:
       Thus, GRUB provides a "password" feature, so that only administrators
    can start the interactive operations (i.e. editing menu entries and
    entering the command-line interface). To use this feature, you need to
    run the command `password' in your configuration file (*note
    password::), like this:
    
         password --md5 PASSWORD
    
       If this is specified, GRUB disallows any interactive control, until
    you press the key <p> and enter a correct password.  The option `--md5'
    tells GRUB that `PASSWORD' is in MD5 format.  If it is omitted, GRUB
    assumes the `PASSWORD' is in clear text.
    
       You can encrypt your password with the command `md5crypt' (*note
    md5crypt::). For example, run the grub shell (*note Invoking the grub
    shell::), and enter your password:
    
         grub> md5crypt
         Password: **********
         Encrypted: $1$U$JK7xFegdxWH6VuppCUSIb.
     
       Then, cut and paste the encrypted password to your configuration
    file.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    check this thread.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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