破解密码
修复模式:进入的是原来的系统。
1,特权模式:决大部分的服务不会开机启动,不需要root密码,直接以root账户身份登陆。
破解密码时特权模式。
1.重起系统,进入grub菜单
2.选择要使用的内核
3.按e

4.找到linux16那一行,把光标移动到最后,添加 init=/bin/sh
5.ctrl+x #保存退出

6.进入系统后,以rw方式重新挂载/分区
#mount -o remount,rw /
7.永久关闭selinux
#vim /etc/sysconfig/selinux
改成disabled
8.修改密码

9.关机重启
网友评论