比如:
Password:
Your default context is user_u:system_r:unconfined_t.
Do you want to choose a different one? [n]
Last login: Wed Jun 6 21:44:04 from 10.157.143.43
[oracle@Brazil_DMDISty ~]$
DMD-Graphic<*graphic*/etc/selinux>ls
config targeted
DMD-Graphic<*graphic*/etc/selinux>
DMD-Graphic<*graphic*/etc/selinux>
將其中的 SELINUX=enforcing 注释掉,然后加入
SELINUX=disabled 即可。
DMD-Graphic<*graphic*/etc/selinux>cat config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
DMD-Graphic<*graphic*/etc/selinux>ls
config targeted
DMD-Graphic<*graphic*/etc/selinux>
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-84668/,如需转载,请注明出处,否则将追究法律责任。