DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

How to Disable SELinux in RHEL

June 28, 2018 DbAppWeb Admin

SELinux (Security-Enhanced Linux)

When we install a new RHEL OS on any machine then by default SELinux feature becomes Enforcing. You can disable it at the time of installation of RHEL OS but if you forget to change it then you can change it later but you need to reboot the server. Status of SELinux can be checked using the command getenforce.

[root@RHEL6.8 ~]# getenforce
Enforcing

It can be set to any of the below three levels as shown below:

enforcing – SELinux security policy is enforced.
permissive – SELinux prints warnings instead of enforcing.
disabled – No SELinux policy is loaded.

Disable SELinux

To run some software or application on RHEL you need to disable the SELinux feature. To disable the SELinux feature you need to edit the /etc/selinux/config file. Change the value of SELINUX from enforcing to disabled. After changing the value you need to reboot the server.

[root@RHEL6.8 ~]# vi /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 - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

.
.

Once the server is rebooted these changes will come into effect which can be verified using the command getenforce and its output should be disabled.

[root@RHEL6.8 ~]# getenforce
Disabled

Note: I need to disable the SELinux on RHEL 6.8 for the installation of IBM Bigfix Agent as per their prerequisite.

Prev Article
Next Article
Tags:IBM Bigfix Agent Linux RHEL

No Responses

  1. Pingback: Installing the bigfix 9.x agent on RedHat Linux - DbAppWeb.com
  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com