Howto disable SELinux on Centos 7.x and RHEL

Howto disable SELinux on Centos 7.x and RHEL


SELinux is a Linux feature that provides the mechanism for supporting access control security policies. By default, when you installed the linux operation system, The SELinux service is enabled,

Step 1: Check present status of SElinux

[root@IThelpblog ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 28
[root@IThelpblog ~]#

Step 2: Disable SElinux

[root@IThelpblog ~]# 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 three two values:
# targeted – Targeted processes are protected,
# minimum – Modification of targeted policy. Only selected processes are protected.
# mls – Multi Level Security protection.
[root@IThelpblog ~]#

Step 3: Reboot server

[root@IThelpblog~]# init 6

Thanks for using


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>