sestatus in the command line. If the status is not disabled, disabled it using the procedure below.
Note: If the status changes to enforcing after a restart, it means that it was temporarily disabled. In this case, you need to permanently change the status using the procedure below.
How To Permanently Disable SELinux
-
Open the following file:
/etc/selinux/config -
Change
SELINUX=enforcingtoSELINUX=disabledand save the file. - Depending on your OS and distro, you may need to reboot the machine for the changes to take effect.
-
Verify that status by typing
sestatusin the command line.