Add a password to the Ubuntu Startup Menu

Source: Internet
Author: User
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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.