Welcome, Guest! Registration

loc2log

Wednesday, 2024-04-24
Main » 2015 » August » 27 » How to disable selinux on CentOS 7
8:30 PM
How to disable selinux on CentOS 7

Here is how to disable SELinux on CentOS 7. That shall also work on the corresponding RedHat systems.

First of all check status of SELinux on your system:

~]$ sestatus

To make the SELinux permissive immediately:

~]$ sudo setenforce Permissive

To make SELinux permissive after reboot, edit /etc/sysconfig/selinux to get

SELINUX=permissive

To disable SELinux altogether, edit /etc/sysconfig/selinux to get

SELINUX=disabled

The changes in /etc/sysconfig/selinux will be in effect after

sudo reboot

Great SELinux HowTo from CentOS

Views: 910 | Added by: ep | Tags: RedHat, selinux, Linux | Rating: 0.0/0
Total comments: 0
Only registered users can add comments.
[ Registration | Login ]