dmirsso
(usa CentOS)
Enviado em 26/09/2014 - 13:55h
shoujo escreveu:
descobri o que estava errado
no /etc/sudoers coloque assim:
www-data ALL=NOPASSWD:ALL
aqui tambem nao estava executando o comando, aquele all que estava errado
alterei no sudoers mas não funcionou ainda, segue abaixo o log dos comandos executados (permission denied e sempre que tento acessar com o root usando sudo)
[Fri Sep 26 13:44:07 2014] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Fri Sep 26 13:44:07 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Sep 26 13:44:07 2014] [notice] Digest: generating secret for digest authentication ...
[Fri Sep 26 13:44:07 2014] [notice] Digest: done
[Fri Sep 26 13:44:08 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Fri Sep 26 13:44:08 2014] [warn] ./mod_dnssd.c: No services found to register
[Fri Sep 26 13:44:14 2014] [error] [client ::1] PHP Notice: Undefined index: comando in /var/www/html/index.php on line 25
[Fri Sep 26 13:44:14 2014] [error] [client ::1] File does not exist: /var/www/html/favicon.ico
[Fri Sep 26 13:44:14 2014] [error] [client ::1] File does not exist: /var/www/html/favicon.ico
sudo: unable to open audit system: Permission denied
sudo: unable to open audit system: Permission denied
sh: asdf: command not found
sudo: unable to open audit system: Permission denied
sudo: unable to open audit system: Permission denied
httpd: unrecognized service
visudo: /etc/sudoers: Permission denied
visudo: /etc/sudoers: Permission denied