Linux root 密码破解

开机在显示菜单按e进入编辑模式
选择linux16那一行,而后光标移到这一行末尾,添加一个参数rd.break
而后按ctrl+x执行。执行以后会进入一个shell界面
设置root密码。设置密码一个5步:
从新挂载根目录为读写模式 mount -o remount,rw /sysroot
切换到系统真正的根chroot /sysroot
修改密码passwd root
SELinux给全部文件标签,必需要有.autorelabel文件。touch /.autorelabel
退出编辑模式(输入exit两次),系统会自动重启exit两次
Linux root 密码破解linux