Linux Administrator

How to Disable SELinux on CentOS 6.4

Security-Enhanced Linux (SELinux) is a security module specifically made for the Linux kernel, which enables features that support security policies for access control, including mandatory access control (MAC).Released in January 1998, it is written in the C programming language and has been a part of the Linux mainline since 2003, when version 2.6 which was released.

In this aritlce I will show how to disable SELinux on CentOS 6.4 machine. Sometime you may hit a problem when try to install software on Linux machine if SELinux is enable.

Disable SELinux on CentOS 6.4

Follow the below steps to disable SELinux.

1. First check the SELinux status using below command.

# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted

2. Now disable SELinux on CentOS 6.4 permanently.

# vi /etc/sysconfig/selinux

Change “SELINUX=enforcing” to “SELINUX=disabled”.

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

3. Now reboot CentOS 6.4 server.

# init 6

OR

# reboot
Thank you! for visiting LookLinux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at LookLinux Submit Article. Stay connected to Facebook.

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment