3

How to permanently disable selinux

view full story
linux-howto

http://forums.fedoraforum.org – Hi all, i came across the following method of how to permanently disabling selinux and it's notifications. Although changing enforcement from the gui into permissive mode does most of the job, the notifications still pop-up when some applications are started. So to disable it do the following: open terminal as root and execute: Quote: su - gedit /etc/selinux/config and then change the SELINUX line to SELINUX=disabled Quote: # 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 these two values: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted this is it. Now reboot the system and selinux will never bother you again. If you are not a Fedora user and you are using this forum just because we are cooler here :) then you will not find the /etc/selinux/config as in the fedora releases. What you need to do is to edit the kernel boot line and add selinux=0 at the end: Quote: root (hd0,0) kernel /boot/vmlinuz-x.x.xx-selinux-xxxxxxxxx ro root=/dev/hda1 nousb selinux=0 #initrd /boot/initrd-x.x.xx-selinux-xxxxxxxxx.img reboot the system Hope it helps (helped me anyway :)) thanks (HowTos)