Selasa, 03 Maret 2009

How to set password on grub

  1. Login as root.
    redarix:~ # grub-md5-crypt
    Password:
    Retype password:
    $1$zrqqv$smtnY9hrvn7WvFunfSPkR0
  2. Use your favorite editor to edit /boot/grub/menu.lst and add the md5 password result to the menu.lst.
    redarix:~ # vi /boot/grub/menu.lst

    title openSUSE 11.0 - 2.6.25.20-0.1
    root (hd0,0)
    password --md5 $1$zrqqv$smtnY9hrvn7WvFunfSPkR0
    kernel /boot/vmlinuz-2.6.25.20-0.1-pae root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM38021_6RW1G08R-part1 resume=/dev/sda5 splash=silent showopts
    initrd /boot/initrd-2.6.25.20-0.1-pae
  3. Reboot your OS.
  4. Finish.


0 comments:

Posting Komentar