1, is to use the super user to execute the grub-md5-crypt, the command means that the grub Password using md5 encryption method, if the direct use of plaintext encryption this step can be omitted. Enter the password twice, and then the encrypted password will appear, a string, copy string 2. Edit the bootgrubmenu. lst file, under timeout
First, is to use the super user to execute grub-md5-crypt,CommandIs to use the md5 encryption method for the grub Password, If you directly use the plaintext encryption, this step can be omitted. Enter the password twice, and then the encrypted password will appear, a string, copy the string
Ii. Edit/boot/grub/menu.LsT file, inTimeAdd the line of password -- md5 $1 $ iMJtJ/$ c4uwl2vrow.ttvb3abwqa under out. The red part is the string you just copied.
3. Adding a lock under title linux indicates that the lock will be triggered when it is started, and the lock will be stopped if no password is entered.
4. Restart. You can hear it at grub startup. Press p and enter the password to boot the system normally.