We can use the setenforce command to disable SELinux
# setenforce 0
The ‘setenforce’ command may be used to switch between Enforcing and Permissive modes
To make it permanant, edit /etc/selinux/config file, run:
# vi /etc/selinux/config
Update the configuration file as follows:
SELINUX=disabled
To quickly check SELinux status by running following commands.
root@serverxx [~]# cat /etc/sysconfig/selinux
Or
root@serverxx [~]# getenforce Disabled root@serverxx [~]#
Or
root@serverxx [~]# sestatus SELinux status: disabled root@serverxx [~]#
One Response to How to disable SELinux