selinux中sestatus命令无法使用
发布时间:2011-12-09 00:35:08来源:红联作者:zi_jun
大家好,今天出了点小问题。
我使用的是redhat enterprise 5.4 版本,相应的服务已经启动,如下所示:
------------------------------
[root@localhost selinux]# cat 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=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
-------------------------------
但是,请看 总是出现如下所示(这种情况经常出现,听别人说主要是因为安装系统的时候没有安装软件,就连GCC也没安装!)
-------------------------------
[root@localhost selinux]# sestatus
bash: sestatus: command not found
-------------------------------
我也重新启动过了,还是这样,查询相关sestatus,人家说只要把 SELINUX=enforcing 就行了,可是我改了,还不行!
是在找不到答案了,所以来论坛问问~~
先谢了~~