Administration CentOS Fedora Linux

Disable SELinux

Security-Enhanced Linux (SELinux) is a mandatory access control (MAC) security mechanism implemented in the Linux kernel. This mechanism adds an extra layer of access security to your files,directories,devices, ports and even processes.

I strongly recommend that you implement SELinux in your environment. But, in some cases, you may want to disable it to avoid some unnecessary issues.

To disable SELinux in CentOS boxes on the fly, simply type the following command as root:

setenforce 0 

To disable it permanently and remain in effect even after reboots, simply edit the file “/etc/selinux/config” and change the following

SELINUX=enforcing

to

SELINUX=disabled

Related Articles

  • Basic Linux commands

              In recent years, more people have begun to look into , explore, and try out the many features of Linux based operating System has to offer. One of the...
  • Patching The Ghost Vulnerability

    The Ghost vulnerability, also known as CVE-2015-0235, is an exploit in a library named glibc. This library is referenced by many applications which run on your server. The exploit is...
  • Simple Stateful Load Balancer with iptables and NAT

    NOTE: To demonstrate how iptables can perform network address translation this how-to shows how to use it to implement a over-simplified load balancer. In practice we would use a daemon...
  • Verify RPM package integrity

    In the case of Centos/RedHat OS, RPM tool can be used to verify the integrity of the installed package and check if any of the package has been compromised or not....