After two of the process we know that other people can effectively block when they are not able to enter the system, but what if someone can get into the system and look at/ETC/GRUB.COF? This involves a MD5 encryption, which is in principle unbreakable, but by brute force, some simple passwords can easily be cracked, so the more complex the password is, the more useful it is. How to do it?
A: In the Super User's directory input: Grub-md5-crypt, and then let you enter the password, here I input 123456, 2 times after the input, will appear by the MD5 encrypted ciphertext, we will copy this cipher to grub.conf
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/06/6E/wKiom1m3_LSxYfxDAAAj8U9Pjl0369.png-wh_500x0-wm_ 3-wmp_4-s_2540668003.png "title=" 5.png "alt=" Wkiom1m3_lsxyfxdaaaj8u9pjl0369.png-wh_50 "/>
Continue using the command vi/etc/grub.conf
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/A5/1E/wKioL1m3_Jqj2nfNAABZpn0QwiA174.png-wh_500x0-wm_ 3-wmp_4-s_1898730007.png "title=" 6.png "alt=" Wkiol1m3_jqj2nfnaabzpn0qwia174.png-wh_50 "/>
Then follow the steps (2) to do so, so that we can protect our Linux password to a certain extent. It is important to note that a space is required in the password and must be followed--only, otherwise it will not take effect.
This article is from the "Costin" blog, make sure to keep this source http://brighttime.blog.51cto.com/12837169/1964785
Linux Protection boot password (3)