turn off SElinux

Aleksandar Milivojevic amilivojevic at pbl.ca
Mon Apr 25 13:59:33 UTC 2005


jim lawrence wrote:
> I need to turn off SElinux for a test 
> Can i do this without a reboot ?
> if so , How?

No, you can't completely turn it off.  The only way to completely turn 
it off is reboot.  However, you can switch it to permissive mode.  In 
that mode, it will only log violations, but will not block access to 
resources.  If you are testing, this might be better than turning it 
completely off (since you'd get logged why something doesn't work in 
enforcing mode).  To switch to permissive mode, execute "setenforce 0". 
  To switch back to enforcing mode, execute "setenforce 1".  The SELinux 
will try hard not to clubber your log files when in permissive mode (it 
will try to log each type of violation only once).

-- 
Aleksandar Milivojevic <amilivojevic at pbl.ca>    Pollard Banknote Limited
Systems Administrator                           1499 Buffalo Place
Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7




More information about the fedora-list mailing list