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:

SELINUX=enforcing

To this:

SELINUX=permissive

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 comments to How To: Disable SELinux in Fedora

  • Ricardo

    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.

  • Nikola

    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

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>