Redhat7_root密码修改
1.进入grub后按e 2.在linuxl6****这一行最后添加 rd.break 后按ctrl+X 3.在switch_root输入:mount –o remount,rw /sysroot 4.在switch_root输入:chroot /sysroot ---->切换至/sysroot目录下 5.在sh-4.2输入:passwd ---->修改密码 6.在sh-4.2输入:touch /.autorelabel ---->根下创建隐藏文件autorelabel 7.在sh-4.2输入:exit ---->退出 8.在switch_root输入:exit ---->退出
转载请注明原文地址: https://www.6miu.com/read-21776.html