Permissions

getenforce / setenforce

English

Overview

Commands for checking and changing SELinux's operating mode (Enforcing or Permissive).

Details

getenforce shows the current mode, and setenforce can temporarily switch it. A typical use during troubleshooting is switching temporarily to Permissive mode (which disables enforcement but still logs violations) to determine whether SELinux is the cause of a problem.

More Linux terms