Steps to check if SELinux is enabled or disabled in RHEL 5 :
Try running command getenforce from command prompt in Red hat enterprise Linux :
[root@rhel 5 ~]# getenforce
Disabled
|
OR
[root@rhel 5 ~]# grep SELINUX /etc/selinux/config
# SELINUX= can take one of these three values:
SELINUX=disabled
|
Steps to disabled SElinux in RHEL 5
There is file called config in /etc/selinux which is used to enable/disable SElinux in RHEL5:
[root@rhel 5#cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0
|
No comments:
Post a Comment