This article introduces a Linux boot guide encryption method.

Source: Internet
Author: User

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.

  1. Solve Linux grub startup Problems
  2. Detailed analysis of Linux password cracking Problems
  3. View All Linux hardware information
  4. Detailed parsing of Linux directory structure
  5. Describes the Linux User Group Management Solution in detail.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.