Skip to content

Instantly share code, notes, and snippets.

@1901
Created July 18, 2019 10:52
Show Gist options
  • Save 1901/8e7f7bf9f3711739cef6fa6da4c48cd6 to your computer and use it in GitHub Desktop.
Save 1901/8e7f7bf9f3711739cef6fa6da4c48cd6 to your computer and use it in GitHub Desktop.
[CentOS disable selinux] #linux #selinux
# check selinux status (SELinux status & Current mode)
sestatus
---
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 31
# temporarily change to permissive mode
setenforce 0
# permanently disable SELinux on your CentOS 7 system
/etc/selinux/config
# change `SELINUX` value.
# reboot and check status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment