Add a password to the Ubuntu boot menu to make the system more secure. Use sudogedit/boot/gurb/menu. lst to edit the menu file #### EndDefaultOptions # titleUbuntu8.04.1, kernel2.6.24-19-genericroot (hd0, 6)/ubuntu/diskskernel/boot/vmlinuz
Add a password to the Ubuntu boot menu to make the system more secure.
Use sudo gedit/boot/gurb/menu. lst to edit the menu file
Find
#### End Default Options ##
Title Ubuntu 8.04.1, kernel 2.6.24-19-generic
Root (hd0, 6)/ubuntu/disks
Kernel/boot/vmlinuz-2.6.24-19-generic root = UUID = 7854-121A loop =/ubuntu/disks/root. disk ro quiet splash
Initrd/boot/initrd. img-2.6.24-19-generic
Title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
Password 123456 (this is the set password, which is set to 123456)
Root (hd0, 6)/ubuntu/disks
Kernel/boot/vmlinuz-2.6.24-19-generic root = UUID = 7854-121A loop =/ubuntu/disks/root. disk ro single
Initrd/boot/initrd. img-2.6.24-19-generic
Save and restart to see the effect. I am encrypting the recovery mode, and so are other encryption methods.
You can use the grub-md5-crypt First password with MD5 encryption:
Code:
$ Grub-md5-crypt
Password:
Retype password:
$1 $ Kmpva $ 9iLHPwiGdgi. 26 dOjUPeR/
Add an md5 and password to the password in menu. lst.
Code:
Password -- md5 $1 $ Kmpva $ 9iLHPwiGdgi. 26 dOjUPeR/