Linux的ststus低7位,selinux中sestatus命令无法使用

在Red Hat Enterprise 5.4系统中,用户遇到了SELinux的sestatus命令无法使用的问题。尽管SELinux设置为强制执行模式,但sestatus命令始终显示未找到。本文将探讨可能的原因及解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 就行了,可是我改了,还不行!

是在找不到答案了,所以来论坛问问~~

先谢了~~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值