介绍一种Linux启动引导加密

运维 系统运维
Linux启动引导加密是可以增加系统全性能的一种方式,这样要想让Linux系统启动必须得有启动密码才可以,这样就让安全又提高了一层。

Linux启动引导加密是提高Linux安全性的一种措施,这里以RedHat Linux为例来进行Linux启动引导加密的设置,实验是提高我们技术的一种手段,我们一定要亲手试一试这种方法,完成技术的学习。

让linux启动引导加密方法
#vi /boot/grub/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 /initrd-version.img
#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/grub.conf" 17L, 569C written
[root@localhost root]# reboot

现以上提示输入:12345678
 
系统才可以引导
 
注意:远程勿试!
 
以密文方式
 
[root@localhost root]# grub-md5-crypt
Password:
$1$jQORq$BbVuVrnQ60b87FlXP/aau/
[root@localhost root]# vi /boot/grub/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 /initrd-version.img
#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/grub.conf" 17L, 598C written
[root@localhost root]# reboot

这里就进行了Linux启动引导加密的设置。

【编辑推荐】

  1. 解决Linux grub启动的有关问题
  2. 详细解析Linux密码破解问题
  3. 全面总结查看Linux全部硬件信息
  4. 详细解析Linux目录结构
  5. 详细讲述Linux用户组管理方案
责任编辑:小霞 来源: 互联网
相关推荐

2011-07-04 17:53:48

快速测试

2010-03-04 15:20:30

Linux优盘引导安装

2018-02-08 08:11:41

2010-03-04 15:37:17

Linux优盘引导安装

2021-06-04 08:58:41

Linux运维Linux系统

2023-02-26 23:10:09

存储Linux架构

2023-07-25 15:10:36

Linux存储

2009-12-24 15:29:09

Linux安装

2017-08-01 18:06:56

2022-11-09 08:24:39

2016-10-26 09:12:58

2020-12-23 10:10:23

Pythonweb代码

2022-06-22 09:44:41

Python文件代码

2022-07-07 10:33:27

Python姿势代码

2020-12-09 10:15:34

Pythonweb代码

2012-01-17 11:02:39

2017-01-22 16:35:02

iOSBlockCallback

2015-08-03 09:36:01

赛迪翻译

2015-08-31 09:27:21

语言界面UI

2023-06-02 15:26:37

光纤综合布线
点赞
收藏

51CTO技术栈公众号