Security-Enhanced Linux (SELinux) is a mandatory access control (MAC) security mechanism implemented in the kernel. SELinux was first introduced in CentOS 4 and significantly enhanced in later CentOS releases.
In this little article we will going to focus how to set up SELinux in order to avoid problems during Zimbra installation.
For further insight on SELinux, we recommend reading this article
Changing SELinux status
First of all we need to check the SELinux status:
If you find the response is “enforcing”, then type:
sudo setenforce 0
And then again check the status:
Now you should see the status changed from “enforcing” to “permissive”
Completely disable SELinux
The above command is temporary and is intended to work on the current session. If you want to make permanent changes and completely disable SELinux, you need to proceed as following:
First of all you need to open the SELinux config with an editor:
You will see something as shown:
What we need to do is to edit the line SELINUX, and change it to “disabled” to completely disable it.
Ctrl + X to exit the editor, save changes and we are ready to go.