Monday, December 26, 2011

Security-Enhanced Linux (SELinux)

For show status:
[root@mail ~]# getenforce
Disabled
For Disable SELINUX :
[root@mail ~]#setenforce 0
[root@mail ~]# vim /etc/sysconfig/selinux
SELINUX=disabled
For Enable SELINUX :
[root@mail ~]#setenforce 1
[root@mail ~]# vim /etc/sysconfig/selinux
SELINUX=enforcing

NB:After change enforcing/disable you must restart your server