How to Secure Single Mode Linux

From DISI
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.