It depends upon the boot loader you are using. With grub, you first need to create an encrypted password with the "grub-md5-crypt" command. You must be root to do this.
[root@mickey ~]# grub-md5-crypt
Password:
Retype password:
$1$XrTDO$u5L0Vx/NSj1UnuHVBsVkw/
[root@mickey ~]#
Next, edit the grub config file (in fedora this is /boot/grub/grub.conf) and insert the following line right after the "default" and "timeout" lines:
password --md5 $1$XrTDO$u5L0Vx/NSj1UnuHVBsVkw/
Be sure and use 'copy and paste' to get it exactly the same as was generated by the grub-md5-crypt command.
Hope this helps
Harold
|