如何防止别人破解root 密码

如何防止别人破解root 密码?单用户模式加密(重要说明:在grub.conf 文件中,输入加密密码。有明文件加密,md5 加密。2 种)

方法1,使用md5加密

a.md5 加密。生成密钥,Password:redhat
[root@localhost ~]# grub-md5-crypt
Password:redhat
Retype password:redhat
$1$Ft5LZ1$EqEakc/iB7VJhDaYS6V/i/

b.把生成的密钥输入到grub.conf 文件中。建议:先备份grub.conf 文件

cp /boot/grub/grub.conf ? /boot/grub/grub.conf.sav

c.密钥输入在第1 个title 之前的一行即可:

 
QQ20140202185512

 

d..选择操作系统时,下行要求输入“p”

111111

 

e.输入:redhat

22222222

 

方法2,明文加密码就更简单了

333333333

如何防止别人破解root 密码
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Scroll to top
0
Would love your thoughts, please comment.x
()
x