rhel7.0破root密码

1. 登录界面start 系统rem

2. 当看到内核信息时,e 进入编辑模式,在内核信息(Linux16...)后面加上“rd.break cosole=tty0” ,crt+x保存it

3. 这时以switch_root模式,touch

#mount remount,rw /sysrootco

#chroot /sysroot内核

切换到正常的root模式,界面

#passwdab

#touch /.autorelabel系统

#exittar

切换到switch_root模式,#reboot 便可。