How To Disable SELinux in CentOS 8

  1. Check the status of SELinux with getenforce
    # getenforce
  2. To temporarily disable SELinux, set it to passive mode.  It will revert back to enforcing after a reboot.
    # setenforce 0
    # getenforce
  3. To permanently disable SELinux, change the SELINUX line in /etc/selinux/config to disabled
    # vim /etc/selinux/config

Was this helpful?

0 / 0

Leave a Reply 0

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.