Created
July 18, 2019 10:52
-
-
Save 1901/8e7f7bf9f3711739cef6fa6da4c48cd6 to your computer and use it in GitHub Desktop.
[CentOS disable selinux] #linux #selinux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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