Disable SELinux on RHEL 8 Edit Bashnano /etc/selinux/config. Change: Text OnlySELINUX=enforcing Change the value to disabled: SELINUX=disabled Save changes. Run the following command disable right away: Bashsudo setenforce 0