Friday 30 July 2021

How to Disable SELinux on RedHat 8.1 Linux Server


This tutorial will guide you on how to Disable SELinux on RedHat 8.1 Linux server. After successful RedHat 8.1 operating system installation this is the first step we need to do it on linux server.

[root@worldwidelinux ]# getenforce

Please follow the below steps to disable SELinux on RedHat 8.1 Linux server:

1. Open selinux config file using vim editor as shown in the image given below:

[root@worldwidelinux ]# vim /etc/selinux/config

selinux config

2. Change a value of SELINUX from enforcing to disabled.

SELINUX

Press Esc key then type :wq! and press Enter key to save and close the file.

3. Reboot a server

You can manually reboot server by pressing power button or execute a reboot command in terminal.

[root@worldwidelinux ]# reboot

reboot

4. Check status of SELinux

Execute getenforce command to check the status of SELinux and make sure it is disabled.

status of SELinux