Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, Please let me know how to setup linux grub password. I am using RHEL ver 1.3 WS Regards, Anjan...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Location
    no.657 5th cross 2nd main
    Posts
    9

    GRUB Password


    Hi,

    Please let me know how to setup linux grub password. I am using RHEL ver 1.3 WS

    Regards,
    Anjan

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    First you need to encrypt your password. You can do that by running the "md5crypt" command from within the GRUB shell. Then you need to add a "password" command to grub.conf that uses that encrypted password, like this:
    Code:
        GNU GRUB  version 0.94  (640K lower / 3072K upper memory)
    
     [ Minimal BASH-like line editing is supported.  For the first word, TAB
       lists possible command completions.  Anywhere else TAB lists the possible
       completions of a device/filename. ]
    
    grub> md5crypt
    
    Password: ****
    Encrypted: $1$sVupd0$7KNtPDDeIN5D0V4zajLet/
    
    grub>
    If you get that reply, then you should add this to your grub.conf:
    Code:
    password --md5 $1$sVupd0$7KNtPDDeIN5D0V4zajLet/

Posting Permissions

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