# IT #/Linux

Centos 6,7 selinux 중지 / 비활성화

국철 2017. 9. 29. 14:03
반응형

selinux 중지

[root@localhost ~]# setenforce 0


중지 후 vi 편집기로 수정

[root@localhost ~]# vi /etc/sysconfig/selinux


# 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 →→ disabled

# SELINUXTYPE= can take one of these two values:

#     targeted - Targeted processes are protected,

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted

반응형