I am trying to check if my selinux is disabled/enabled and can't find its config file, why its like that and what should I do to disable it.

cheers, /Marcin

link|improve this question

33% accept rate
feedback

3 Answers

To change the SELinux to disable you can use the below command:

setenforce 0

While this does not replace the config file it will put SELinux into permissive mode until the next reboot, meaning that SELinux is running and logging but not actually controlling permissions.

You can as well try the command:

/usr/bin/system-config-securitylevel-tui

To totally disable it.

link|improve this answer
feedback

sestatus will tell you if SELinux is enabled, as well as a few other characteristics.

link|improve this answer
can't run it, no command found – Marcin Oct 19 '10 at 12:04
Then it certainly isn't enabled, since it can't be enabled without other utilities found in the same package. – Ignacio Vazquez-Abrams Oct 19 '10 at 14:06
feedback

The selinux configuration file path under CentOS is /etc/sysconfig/selinux.

link|improve this answer
its not under my dist, doesn't mean its not installed ? – Marcin Oct 19 '10 at 12:05
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.