Fedora HowTo Linux Posts

How To: Disable SELinux in Fedora

WARNING: by continuing following this guide you are putting your machine at risk by disabling the secuity features within SELinux, I strongly advise if you do not know what you are doing, stop and read up on the implications this action will have before continuing. Some information is avaible in the Fedora Wiki here .

Open up this file:

sudo gedit /etc/selinux/config

Change the line that looks like this:


To this:


Save and reboot and it should be working, although again be warned this has disabled the security mechanism on your system. To re-enable this, simply do the same however change from permissive to enforcing and again reboot your machine.

3 replies on “How To: Disable SELinux in Fedora”

This is stupid advice, did this on my Fedora 15 build and now my OS won’t load with a “Failed to load SELinux policy.” error message.

It’s not stupid advice, I simply wrote instructions to disable it. I even included a warning expressing that this should not be done unless you know what you are doing, maybe you should read up before blindly following instructions.

This didn’t work for me, I noticed same error as Ricardo.
I would suggest using:
SELINUX=disabled instead of SELINUX=permissive if you’re just looking to disable it.

Leave a Reply

Your email address will not be published. Required fields are marked *