Breaking News
Loading...
Saturday, August 3, 2013

How to Check and Disable SELinux on CentOS 6.4

9:48 AM

1.Introduction
Security-Enhanced Linux (SELinux) is a Linux feature that provides security mechanism for supporting access control security policies implemented in the kernel. SELinux checking for allowed operations after standard Linux discretionary access controls are checked. In this post i will shows on how to check SELinux status and disables SELinux on linux CentOS 6.4.
2.Install 
Step 1. How to check SELinux on CentOS 6.4 ?
[root@howtolinux ~]# sestatus
or
[root@howtolinux ~]# getenforce
Enforcing
Step 2. How to disable SELinux on CentOS 6.4 permanently ?
[root@howtolinux ~]# cat /etc/selinux/config

or
[root@howtolinux ~]# cat /etc/sysconfig/selinux
Change “SELINUX=enforcing” to “SELINUX=disabled” : 
[root@howtolinux ~]# vi /etc/sysconfig/selinux 

Note : This will disable SELinux on your next reboot
[[root@howtolinux ~]# sestatus
SELinux status:                 disabled
Step 3. How to disable SELinux on CentOS 6.4 immediately without reboot :
[root@howtolinux ~]# setenforce 0
Check SELinux status :
[root@howtolinux ~]# getenforce
Permissive
 
Good Luck For You!! 

0 comments:

Post a Comment

 
Toggle Footer