Linux chcon: não é possível aplicar parcial (Fedora 22)

0

Eu tento alterar a permissão sobre MYAPP dir porque ele tem 777 permissões porque o SEliux bloqueou

Então eu digito este comando

su -c "chcon -R -h -t httpd_sys_script_rw_t /usr/share/nginx/html/MYAPP/

mas eu estou recebendo este erro

chcon: can't apply partial context to unlabeled file HtmlPhpSpecExceptionPresenter.php
chcon: can't apply partial context to unlabeled file Exception
chcon: can't apply partial context to unlabeled file StringPresenter.php
chcon: can't apply partial context to unlabeled file TaggingPresenter.php
chcon: can't apply partial context to unlabeled file Presenter.php
chcon: can't apply partial context to unlabeled file SimplePresenter.php
chcon: can't apply partial context to unlabeled file PresenterInterface.php
chcon: can't apply partial context to unlabeled file Presenter
chcon: can't apply partial context to unlabeled file FatalPresenter.php
chcon: can't apply partial context to unlabeled file HtmlFormatter.php
chcon: can't apply partial context to unlabeled file ReportFailedItem.php
chcon: can't apply partial context to unlabeled file ReportSkipped.html
chcon: can't apply partial context to unlabeled file ReportFooter.html
chcon: can't apply partial context to unlabeled file ReportPending.html

Observação: isso acontece em remote server , mas no meu local machine funcionou bem

    
por Just User 13.01.2016 / 15:10

1 resposta

1

Verifique com o comando semanage.

semanage fcontext -a -t httpd_sys_script_rw_t "/usr/share/nginx/html/MYAPP(/.*)?"

restorecon -R -v MYAPP

Primeiro, verifique com alguma pasta de demonstração.

    
por 13.01.2016 / 17:37