Saturday, 5 May 2012

How to Disable SELinux and Firewall on Centos


Disable Security Enhanced Linux (SElinux) 


If you want to stop temporarily SELinux using below steps

  [root@localhost ~]# setenforce 0

Check Security Enhanced Linux status using following command

            [root@sysadmin]#  getenforce

            Disabled

If you want to stop permanently  SELinux using below steps

 [root@sysadmin]#  vim /etc/selinux/config





Disable Firewall setting


           [root@sysadmin ~]#   system-config-firewall-tui



Remove  "* " symbol then click OK. Now firewall was disabled.


No comments:

Post a Comment