red hat 6 root 密码破解

来源:互联网 发布:独立域名与二级域名 编辑:程序博客网 时间:2024/06/06 05:36
破解root密码,顺利进入系统

核心提示:破解root密码,才能顺利进入系统。

破解root密码,必须进入单用户模式。

如何保护单用户模式?加密!

实验环境:一台已经安装好在VMware Workstation上的RHCE6虚拟机。

实验步骤:
在5秒钟内,抓住时机:按任意键(除了Enter键),进操作系统选择菜单。

出现下图界面:

Press any key to enter the menu
Bootin Red Hat Enterprise Linux.... in 2 seconds...

注意界面下面的提示:按'e'

会出现如下界面:
Red hat Enterprise Linux (2.6 32-71.e16.i686)
Use the "e" to edit the command befire booting...

进入内核选择, 按'e'.

kernel /vmlinux-2.6.32-71.e16.i686 ro root=/dev/mapper/vg_0-logVo100

选择上面的内核,给当前内核发送一个参数 '1'. 或者是's'. 都是表示 启动后进入单用户模式。

<YBOARDTYPE=pc KEYTABLE=us nomodeset crashkernel=auto rhgb quiet 1

按enter 键,回到操作系统界面,按'b' 启动。

进入单用户模式:

passwd

修改密码。

#getenforce
Enfocing
#setenforce 0
Permissive
#passwd
Changing passwd for user root
new password:
init 5 重启,直接进入运行级别5, 图形界面。

0 0