Monday 7 May 2012

Disable SELinux


Disable SELinux

4 method to disable SELinux temporarily or permanently.

Method 1: Disable Temporarily.
# echo 0 > /selinux/enforce
# cat /selinux/enforce
  0
# setenforce 0

Method 2: Disable Permanently.
# vim /etc/selinux/config
  SELINUX=disables
:wq!
Method 3: Disable from Grub Boot loader.
# vim /boot/grub/grub.conf
Go to the end of “kernel” line and add “selinux=0”
:wq!

Method 4: Disable only a specific service in SELinux – HTTP/Apache.
# vim /etc/selinux/targeted/Booleans
  httpd_disable_trans=1
:wq!
# service httpd restart

To check SELinux status
# sestatus

No comments:

Post a Comment

Boot to UEFI Mode or legacy BIOS mode

Boot to UEFI Mode or legacy BIOS mode Choose UEFI or legacy BIOS modes while installing Windows. After Windows is installed, if you nee...