Disabling SELinux

SELinux is enabled by default in RHEL 6 and in some other distributions. Use the following procedure to disable SELinux

  1. Edit /etc/selinux/config and change the SELINUX= line to be SELINUX=disabled
  2. Reboot server
  3. Confirm SELinux is disabled by running getenforce
    [root@server1 ~]# getenforce
  4. Run setfattr -x security.selinux against each file or folder that you want to remove the SELinux ACL from
setfattr -x security.selinux

Leave a Reply

Your email address will not be published. Required fields are marked *