How to Secure Single Mode Linux: Difference between revisions
Jump to navigation
Jump to search
(Created page based on "How to secure single mode Linux" from Lab Manual) |
mNo edit summary |
||
Line 14: | Line 14: | ||
[[Category:Sysadmin]] | [[Category:Sysadmin]] | ||
[[Category: | [[Category:Tutorials]] |
Latest revision as of 18:29, 30 June 2016
Open a shell and login as root. Type:
[root@server ~]# /sbin/grub-md5-crypt Password: Retype password: $1$ZqLKR0$cimxs9UxGPM11IG/U.FW41 vim /boot/grub/grub.conf
Add this right after the timeout line:
password --md5 <password-hash>
OR
password --md5 $1$ZqLKR0$cimxs9UxGPM11IG/U.FW41
Reboot the system. In order to access the grub menu you have to type p and then the password.