IT/Linux
리눅스(CentOS,RHEL)등에서 Selinux 설정 해제하기 (Disabled)
akionz
2016. 7. 15. 15:42
리눅스(CentOS,RHEL)등에서 Selinux 설정 해제하기 (Disabled)
내용
- 내용
리눅스를 설치 한 후, 실제 SSH통신이나 리눅스 내장 보안 방화벽때문에 문제가 될 경우가 있다.
이럴때는 일단 먼저 Selinux를 먼저 해제하는것이 좋다.
- 사용방법
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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 - No SELinux policy is loaded. SELINUX=enforcing => SELINUX=disabled 변경 # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted | cs |
config파일내에 enforcing을 disabled로 변경 후, 서버 재시작하면 적용이 된다.
정보가 도움이 되었으면 아래 [♡공감] 버튼 한번 눌러주세요^^