Disable selinux on centos 5

In order to temporarily disable SElinux, you will need to run this commands;

setenforce 0

SELinux will be turned back on after a reboot.

In order to permanently disable SElinux, you will need to edit this file;


vi /etc/selinux/config

#----[edit the option like this: ]-------

SELINUX=disabled

—————-

and then reboot the server. Your server should now have SElinux permanently disabled.

g33kadmin

I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.