---
name: "setenforce"
section: "1"
platform: "linux"
package: "selinux-utils"
version: "2.0.96-1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/setenforce"
---

# setenforce(1)

modify the mode SELinux is running in.

## NAME

setenforce - modify the mode SELinux is running in.

## SYNOPSIS

**setenforce \[ Enforcing \| Permissive \| 1 \| 0 \]**

## DESCRIPTION

Use Enforcing or 1 to put SELinux in enforcing mode. Use Permissive or 0 to put SELinux in permissive mode. You need to modify  */etc/grub.conf* or */etc/selinux/config* to disable SELinux.

## AUTHOR

Dan Walsh, \<dwalsh@redhat.com\>

## SEE ALSO

[selinux(8)](/selinux/8.md), [getenforce(8)](/getenforce/8.md), [selinuxenabled(8)](/selinuxenabled/8.md)

## FILES

/etc/grub.conf, /etc/selinux/config
