在引导界面按 e 进入内核编辑. 找到Linux开头行在末尾增加 rd.break 然后ctrl+x 启动系统 紧急救援系统内输入下列命令进行密码更改: #mount -o remount,rw /sysroot #chroot /sysroot #passwd #touch /.autorelabel 重启使用新密码
在引导界面按 e 进入内核编辑. 找到Linux开头行在末尾增加 rd.break 然后ctrl+x 启动系统 紧急救援系统内输入下列命令进行密码更改: #mount -o remount,rw /sysroot #chroot /sysroot #passwd #touch /.autorelabel 重启使用新密码
登录 |