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