Changing the GRUB Account Password

To change the GRUB account password on a compute server:

  1. Log in to the compute server as root.
  2. Use the following command:
    # grub-md5-crypt 
    

    The system prompts for a new password twice.

  3. Copy the string generated by grub-md5-crypt to the copy buffer.
  4. Open the /boot/grub/grub.conf file in a text editor and locate the password setting. It looks similar to the following:
    password --md5 hashed_string
    
  5. Replace the existing hashed string with the one copied from the grub-md5-crypt command output.
  6. Save the file.