How to disable SELinux.

OS: Centos 6

Whenever something isnt working properly – its normally due to SELinux !

One example I recently had was when I tried to simply FTP to a newly created internal server.

After having a quick look over the vsftpd config I swiftly moved onto my next suspect: SELinux.

Before I show you how to turn off SELinux it is important to stress that disabling this feature weakens your security. As I was just running an internal test server I wasnt too concerned but if its Internet facing then I suggest you get your application to work with SELinux rather than completely disabling it. Even switching it to permissive mode is better than not having it running at all.


The following screenshot shows how I’ve changed from “enforcing” to “disabled”


You’ll need to reboot afterwards.