mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-14 17:48:31 +00:00
Update cheatsheets
This commit is contained in:
19
tldr/linux/setenforce
Normal file
19
tldr/linux/setenforce
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# setenforce
|
||||
|
||||
> Toggle SELinux between enforcing and permissive modes.
|
||||
> To enable or disable SELinux, edit `/etc/selinux/config` instead.
|
||||
> See also: `getenforce`, `semanage-permissive`.
|
||||
> More information: <https://manned.org/man/setenforce>.
|
||||
|
||||
- Put SELinux in enforcing mode:
|
||||
|
||||
`setenforce {{1|Enforcing}}`
|
||||
|
||||
- Put SELiunx in permissive mode:
|
||||
|
||||
`setenforce {{0|Permissive}}`
|
||||
Reference in New Issue
Block a user