Disable SELinux

Test if SELinux is running:

USER
selinuxenabled && echo enabled || echo disabled

To temporarily disable SELinux (it'll turn back on on the next system restart)

ROOT
echo 0 > /selinux/enforce

To turn it back on

ROOT
echo 1 > /selinux/enforce

To disabled it, edit /etc/sysconfig/selinux

ROOT
# 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=disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted

technology/linux/disable_selinux.txt · Last modified: 2016/01/28 18:03 by travis
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0