trick: Protecting Grub with a password
Translation of the original in Catalan. Read it in: CatalàCastellano
Have you never had the need to protect one of the grub boot options with a password? Well, here you have an example of how to do it:
grub> md5crypt
Password: *********
Encrypted: $1$sEOFN1$dalP1fzlFCHD4saxlnNzM/
grub>
What the menu.lst looks like:
# Start GRUB global section
#timeout 30
color light-gray/blue black/light-gray
# End GRUB global section
<br>
# Other bootable partition config begins
title Forbidden (on /dev/hda1)
rootnoverify (hd0,0)
makeactive
chainloader +1
# Other bootable partition config ends
<br>
# Linux bootable partition config begins
title Ubuntu Breezy (on /dev/hda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda2 ro vga=790
initrd /boot/initrd.img-2.6.12-9-386
password --md5 $1$sEOFN1$dalP1fzlFCHD4saxlnNzM/
# Linux bootable partition config ends