Linux

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

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store