Friday, August 31, 2018

Disable SELinux on CentOS7

1. Check the current status -
# sestatus

2. Disable SELinux permanently -
# vi /etc/selinux/config
Change SELINUX=disabled

3. Reboot the server and then check the status.

4. Disable SELinux temporarily -
setenforce 0

However this change will be valid for the current runtime session only.

No comments: