Monday, August 3, 2015

Disable SELinux (Security-Enhanced Linux) centos 6





For permanently disabling SElinux you need to edit the file /etc/selinux/config  and change the line SELINUX to

SELINUX=disabled

# 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
# change

# SELINUXTYPE= type of policy in use. Possible values are:
#targeted - Only targeted network daemons are protected.

#strict - Full SELinux protection.

SELINUXTYPE=targeted

Then reboot

No comments:

Post a Comment