1)用第一张安装盘引导
2)进入提示符后输入linux rescue进入拯救模式
3)提示挂接/mnt/sysimage成功后
chroot /mnt/sysimage
echo "0">/selinux/enforce
passwd root xxxxxx
如果没有输入echo "0">/selinux/enforce,会产生如下错误:
passwd: user_u:system_r:unconfined_t is not authorized to change the password root
如果没有启动盘,可以在到到grub界面是按'a',然后为kernel命令行添加selinux=0参数,然后回车继续启动。
posted on 2008-08-07 18:22 王骏的BLOG 阅读(144)
评论(0) 编辑 收藏