Grub password

Jim Canfield jcanfield at tshmail.com
Thu Mar 22 15:48:05 UTC 2007


feras adel wrote:
> Hi all
>    
>   I Have RHEL4 installed on my pc and want to setup a password for my Grub bootloader,
>    
>   can anyone tell me how?
>    
>   
1)  Get encrypted password

#/sbin/grub

grub> md5crypt

Password: ********
(Typed changeme at the prompt)
Encrypted: $1$T7/dgdIJ$dJM.n2wZ8RG.oEiIOwJUs.

grub> quit

2) Edit grub.conf:

timeout=5
password=--md5 $1$T7/dgdIJ$dJM.n2wZ8RG.oEiIOwJUs

grub> quit

-Jim




More information about the redhat-list mailing list