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

Or

[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
Permissive
[root@Centos6 ~]#

You also can have a look this guide

http://ithelpblog.com/os/linux/redhat/centos-redhat/disable-selinux-or-security-linux-on-centos-6-3/

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

Tags:  

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>