setenforce
CautionToggle SELinux mode
setenforce 0
Temporarily flips to Permissive to confirm SELinux is the cause — then fix labels, don't stay disabled.
Examples
setenforce 0Go Permissive for a test
Syntax
setenforce 0|1 (0=Permissive, 1=Enforcing)
Before you run it
A diagnostic, not a permanent fix.
Related commands
- getenforce / sestatusSELinux status
- restoreconRestore SELinux labels
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store