Friday, January 28, 2011

Selinux - centos - missing /etc/selinux/config

Hi Guys,

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

  • 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.

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

    Marcin : can't run it, no command found
    Ignacio Vazquez-Abrams : Then it certainly isn't enabled, since it can't be enabled without other utilities found in the same package.
  • The selinux configuration file path under CentOS is /etc/sysconfig/selinux.

    Marcin : its not under my dist, doesn't mean its not installed ?
    From blartffs

0 comments:

Post a Comment