I want to permanently disable right now for the short term but nothing seems to work for me
Steps I have tried
[root@db1e secure]# setenforce 0
[root@db1e secure]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: permissive
Mode from config file: disabled
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 28
changing value in /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 - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
then restarting the httpd service
both still result in the same status of eabled instead of disabled which I would expect..
Any ideas?
Best Answer
After editing file
/etc/sysconfig/selinux
, for the changes to take effect, you need to reboot your system to get SELinux fully disabled. You can dosetenforce 0
to get the system into "permissive" mode until a reboot occurs.make sure you change
SELinux=enforcing
toSELinux=disabled