본문으로 바로가기

[CentOS] SELINUX 끄기

category Helloworld!/CentOS 2016. 3. 29. 18:22

리눅스에서 chmod 777도 했고, directory 설정 권한도 수정했는데 

403 forbidden 뜰때 selinux를 끈다.



1. vi 를 통해 "/etc/selinux/config" 에 접속한다.

2. selinux 를 다음과 같이 disabled 로 수정한다

[root@xxx log]# vi /etc/selinux/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=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted