小编Moh*_*naq的帖子

chcon:在使用 SELinux 安装 nagios 时无法将部分上下文应用于未标记的文件

我正在使用 SELINUX=enforcing 在 CentOS 上设置 Nagios 核心。

我试着跑

chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
Run Code Online (Sandbox Code Playgroud)

按照手册中的建议,但我收到此错误消息:

chcon: can't apply partial context to unlabeled file `cmd.cgi'
chcon: can't apply partial context to unlabeled file `trends.cgi'
chcon: can't apply partial context to unlabeled file `histogram.cgi'
chcon: can't apply partial context to unlabeled file `avail.cgi'
chcon: can't apply partial context to unlabeled file `history.cgi'
chcon: can't apply partial context to unlabeled file `status.cgi'
chcon: can't apply partial context to unlabeled file `tac.cgi'
chcon: …
Run Code Online (Sandbox Code Playgroud)

linux selinux centos nagios

9
推荐指数
1
解决办法
3万
查看次数

标签 统计

centos ×1

linux ×1

nagios ×1

selinux ×1