cheng029 发表于 2018-5-11 11:47:17

redhat(linux系统)root密码破解经典方法

  我们常常苦恼忘记root密码怎么办?http://blog.chinaunix.net/kindeditor/plugins/emoticons/images/18.gif
今天知道了破解的办法,share给大家!!!
1、在系统启动时进入grub选项菜单。 方法在进入redhat系统倒计时时候,按下enter键,进入grub选项菜单。
http://blog.chinaunix.net/attachment/201312/24/29401250_138787566702uV.png

2、在grub选项菜单按e进入编辑模式。
http://blog.chinaunix.net/attachment/201312/24/29401250_13878756971lv4.png

3.编辑kernel那行再按e,开始编辑,再后面 添加“ /init 1” ,然后按enter键,回到grub选项菜单。
http://blog.chinaunix.net/attachment/201312/24/29401250_1387875831AIIu.png

4.然后在按b重启。
http://blog.chinaunix.net/attachment/201312/24/29401250_1387875861l6xa.png

5.进入系统后,现在是单一用户模式,是指令系统界面,写指令#vim /etc/passwd
http://blog.chinaunix.net/attachment/201312/24/29401250_13878759881NZS.png

6、看见如下界面,按下i,进入vim的插入模式“INSERT”:
http://blog.chinaunix.net/attachment/201312/24/29401250_1387876036BbVv.png


7、将root后面的x删除,此操作其实将root密码设置为空密码。
http://blog.chinaunix.net/attachment/201312/24/29401250_1387876231xsok.png

8、然后保存退出!方法:按下Esc键,进入命令模式,然后按”shift+:“,最后按下wq键,enter键保存退出。
http://blog.chinaunix.net/attachment/201312/24/29401250_138787631195nz.png


9.重启, reboot

http://blog.chinaunix.net/attachment/201312/24/29401250_1387876504781l.png

10、登录linux后修改root密码。
http://blog.chinaunix.net/attachment/201312/24/29401250_138787692370Va.png
终端中可见root密码已经为空!输入passwd root,添加新root密码!!!
页: [1]
查看完整版本: redhat(linux系统)root密码破解经典方法