setenforce Command Examples

Toggle SELinux between enforcing and permissive modes. To enable or disable SELinux, edit /etc/selinux/config instead. See also: getenforce, semanage-permissive. More information: https://manned.org/setenforce.

setenforce {{1|Enforcing}}

setenforce {{0|Permissive}}