How to enable or disable SElinux

by Manoj 2012-04-09 10:11:48

SELinux is a security enhancement to Linux which allows users and administrators more control over access control


If you are having issues booting up and would like to boot your system with SELinux in permissive mode you can edit the /etc/selinux/config file and change the SELINUX variable to permissive (this will not set the current running mode of SELinux).

To disable SELinux altogether you can change the SELINUX variable in /etc/selinux/config to DISABLED and reboot.
Make sure you have the system fully updated - there have been many corrections to SELinux policy.

If you want to allow operations that SELinux would prohibit, issue the following command as root:

setenforce 0

To re-enable SELinux, use:

setenforce 1

Remember that by disabling SELinux, you are also disabling considerable security for the system.

Tagged in:

909
like
0
dislike
0
mail
flag

You must LOGIN to add comments