How To Disable SELinux in CentOS 8

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

Leave a Reply

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