Logo

Armand.nz

Home / About / Linkedin / Github

Enable and Disable SELinux

#linux #SElinux |

Temporarily disable SELinux until the next server reboot, run this command:

To temporarily disable SELinux, run this command:

sudo setenforce 0

To temporarily enable SELinux, run this command:

sudo setenforce 1

Permanently disable SELinux

To disable SELinux permanently so that it continues to be disabled after a reboot, follow these steps.

  1. Edit ``/etc/selinux/config` and search for this line:
SELINUX=enforcing
  1. And change it to this:
SELINUX=disabled
  1. Now, the change is permanent. After the server is rebooted, SELinux will continue to be disabled.
comments powered byDisqus

Copyright © Armand