Disable SELinux on CentOS 7 / RHEL 7 / Fedora Linux

Originally published at: https://www.cyberciti.biz/faq/disable-selinux-on-centos-7-rhel-7-fedora-linux/

I need to disable SELinux on CentOS 7. How can I disable SELinux from the command line over ssh based session?

Why would you want to disable SELinux? True, there is the use case where some kind of installation or other task requires it to be allowed without SELinux. But the warning in this article is not sufficient notice that disabling security features is not a valid administrative tactic. I am waiting for the next article here that explains how to solve common problems SELinux causes. One tip: every selinux user should be familiar with the getsebool -a command.