Sample Header Ad - 728x90

chcon: can't apply partial context to unlabeled file while installing nagios with SELinux

9 votes
2 answers
28932 views
I'm setting up Nagios core on CentOS with SELINUX=enforcing. I try to run chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/ as [suggested in the manual](http://nagios.sourceforge.net/docs/nagioscore/3/en/quickstart-fedora.html) , but I get this error messages: 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: can't apply partial context to unlabeled file `showlog.cgi' chcon: can't apply partial context to unlabeled file `notifications.cgi' chcon: can't apply partial context to unlabeled file `extinfo.cgi' chcon: can't apply partial context to unlabeled file `statuswml.cgi' chcon: can't apply partial context to unlabeled file `outages.cgi' chcon: can't apply partial context to unlabeled file `statuswrl.cgi' chcon: can't apply partial context to unlabeled file `statusmap.cgi' chcon: can't apply partial context to unlabeled file `config.cgi' chcon: can't apply partial context to unlabeled file `summary.cgi' Any ideas how to avoid these errors?
Asked by Mohammed Shannaq (191 rep)
Oct 29, 2011, 07:17 PM
Last activity: Jul 5, 2022, 06:01 AM