Disable SELinux without reboot on Centos 6.3

 Disable SELinux without reboot on Centos 6.3

SELinux is enabled by default, it will be security some services, and we will have some problems when access to CentOS Server.

This Guide will help you how to disable  SELinux without reboot on Centos 6.3

Default SELinux Configuration

[root@Centos6 ~]# cat /etc/selinux/config# 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.
# SELINUXTYPE= can take one of these two values:
# targeted – Targeted processes are protected,
# mls – Multi Level Security protection.
[root@Centos6 ~]#


[root@Centos6 ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: disabled
Policy version: 24
Policy from config file: targeted
[root@Centos6 ~]#

You can disable SELinux without reboot server by

[root@Centos6 ~]# setenforce 0

Check SELinux status:

[root@Centos6 ~]# getenforce
[root@Centos6 ~]#

You also can have a look this guide


That’s all. Thanks for using IThelpblog.com.


Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>