Add a password lock to Grub

Source: Internet
Author: User
Add a password lock for Grub-general Linux technology-Linux technology and application information. The following is a detailed description. Go to the Grub shell Interface when starting the instance. If you do not add a password lock, you can directly access the system you want to start. Here, we will introduce how to add a password lock to Grub to make it safer to start Grub.
1, enter the Linux system, to the root user to execute the grub-md5-crypt, according to the system prompts to enter the password will generate an md5 ciphertext, write down this ciphertext, later to use.
2. Modify/boot/grub/menu as the root user. in the lst file, add a line of password -- md5 md3 ciphertext to the front of the title, then add a line of lock under the title to lock the password, save and exit and restart the computer, if you choose to start the grub menu that has been locked and do not enter the correct password, the system cannot be started. You must press p on the grub shell Interface and enter the correct password before starting the system.
Note: The pasword -- md5 md5 ciphertext line added to the menu. lst file only needs to be added once, and the lock must be added to one row under each title to be locked.

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.