>_ linuxcommand.dev
Startseite setenforce
Security

setenforce

Switches SELinux mode between enforcing and permissive.

CentOS
Verified: 2026-02-09
Syntax
$setenforce [0|1]
Examples
$sudo setenforce 0
$sudo setenforce 1
Typical use cases
?
Standard usage
setenforce --help
Note Temporary switch until the next boot.
Export