grub edit> kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet single # Runlevel 1: process rc.sysinit and rc1.d scripts # Runlevel s,S,single: process only rc.sysinit # Runlevel emerency: run sulogin only
[root@kvm4 /]# passwd type=1400 audit(1323777256.565:29): avc: denied { read } for pid=1912 comm="passwd" path="pipe:[12939]" dev=pipefs ino=12939 .... .... [root@kvm4 /]# echo "123123" | passwd --stdin type=1300 audit(1323777556.699:32): avc: denied { read } for pid=1916 comm="passwd" path="pipe:[12939]" dev=pipefs ino=12939 .... .... [root@kvm4 /]# setenforce 0 <==關閉 selinux type=1404 audit(1323777769.894:4): enforcing=0 old_enforcing=1 audit=4294967295 ses=4294967295 [root@kvm4 /]# passwd type=1400 audit(1323777776.973:5): avc: denied { read } for pid=887 comm="passwd" path="pipe:[10230]" dev=pipefs ino=10230 .... Changing password for user root. New password: BAD PASSWORD: it does not contain enough DIFFERENT characters BAD PASSWORD: is too simple Retype new password: passwd: all authentication tokens updated successfully.
grub edit> kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet selinux=0 1
grub edit> kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet init=/bin/bash
掛載點 裝置檔名 / → /dev/hdb1 /var → /dev/hdb2 /home → /dev/hdb3 /usr → /dev/hdb5
掛載點 裝置檔名 /chroot/ → /dev/hdb1 /chroot/var/ → /dev/hdb2 /chroot/home/ → /dev/hdb3 /chroot/usr/ → /dev/hdb5
2015-04-13