Table of Contents
Check to see if SELinux is installed
RedHat, CentOS and SUSE
rpm -qa | grep selinux
Debian and Ubuntu
dpkg --list | grep selinux
Check to see if SELinux (Security-Enhanced Linux) is enabled
sestatus
No response indicates SELinux is not installed/enabled If enabled, edit the /etc/sysconfig/selinux file. This file is a symlink to /etc/selinux/config. The configuration file is self-explanatory. Changing the value of SELINUX or SELINUXTYPE changes the state of SELinux and the name of the policy to be used the next time the system boots.
sudo vi /etc/selinux/config
SELINUX=permissive or enforcing
Change "permissive" or "enforcing" to "disabled".