setenforce
Switches SELinux between enforcing and permissive modes.
Syntax
$setenforce [0|1]
Examples
Examples
$sudo setenforce 0
Examples
$sudo setenforce 1
Warnings
Permissive mode reduces the SELinux protection scope.
Typical use cases
setenforce --help
man setenforce
Note
Applies only until the next restart, unless configuration is changed.
Export