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:

nano /etc/selinux/config

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.

Technical writer at Zextras. Linux and technology enthusiast. He describes himself as an atypical and polyhedric IT expert, thanks to a creative and open minded attitude, and to the experience gained over time as an IT technician, system engineer and developer.

Post your comment