Linux boot guide encryption is a measure to improve Linux security. Here we use RedHat Linux as an example to set Linux boot guide encryption. experiment is a means to improve our technology, we must try this method to learn the technology.
Enable linux to boot the encryption method
# Vi/boot/grub. conf
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a/boot partition. This means that
# All kernel and initrd paths are relative to/boot/, eg.
# Root (hd0, 0)
# Kernel/vmlinuz-version ro root =/dev/sda2
# Initrd-version.img/initrd
# Boot =/dev/sda
Default = 0
Timeout = 10
Splashimage = (hd0, 0)/grub/splash.xpm.gz
Title Red Hat Linux (2.4.18-3)
Password 12345678
Root (hd0, 0)
Kernel/vmlinuz-2.4.18-3 ro root =/dev/sda2
Initrd/initrd-2.4.18-3.img
~
~
"/Boot/grub. conf" 17L, Objective C written
[Root @ localhost root] # reboot
Now, enter 12345678 as prompted.
System guidance
Note: Do not try it remotely!
Ciphertext
[Root @ localhost root] # grub-md5-crypt
Password:
$1 $ jQORq $ BbVuVrnQ60b87FlXP/aau/
[Root @ localhost root] # vi/boot/grub. conf
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a/boot partition. This means that
# All kernel and initrd paths are relative to/boot/, eg.
# Root (hd0, 0)
# Kernel/vmlinuz-version ro root =/dev/sda2
# Initrd-version.img/initrd
# Boot =/dev/sda
Default = 0
Timeout = 10
Splashimage = (hd0, 0)/grub/splash.xpm.gz
Title Red Hat Linux (2.4.18-3)
Password -- md5 $1 $ jQORq $ BbVuVrnQ60b87FlXP/aau/
Root (hd0, 0)
Kernel/vmlinuz-2.4.18-3 ro root =/dev/sda2
Initrd/initrd-2.4.18-3.img
~
~
"/Boot/grub. conf" 17L, 598C written
[Root @ localhost root] # reboot
The encryption settings for Linux boot guide are implemented here.
- Solve Linux grub startup Problems
- Detailed analysis of Linux password cracking Problems
- View All Linux hardware information
- Detailed parsing of Linux directory structure
- Describes the Linux User Group Management Solution in detail.