Allora...
Ho la seguente situazione.
Il mio utente si chiama apache
ho modificato sudoers aggiungendo alla finecodice:apache 2488 0.0 2.7 18020 3512 ? S 00:12 0:00 /usr/sbin/httpd apache 2489 0.0 2.7 18020 3528 ? S 00:12 0:00 /usr/sbin/httpd apache 2490 0.0 2.7 18020 3500 ? S 00:12 0:00 /usr/sbin/httpd apache 2491 0.0 2.3 18020 2932 ? S 00:12 0:00 /usr/sbin/httpd apache 2495 0.0 2.7 18020 3508 ? S 00:12 0:00 /usr/sbin/httpd apache 2498 0.0 2.2 18020 2828 ? S 00:12 0:00 /usr/sbin/httpd apache 2499 0.0 2.3 18020 2932 ? S 00:12 0:00 /usr/sbin/httpd apache 2500 0.0 2.2 18020 2876 ? S 00:12 0:00 /usr/sbin/httpd
ho messo nella directory del server due files.codice:apache ALL=(ALL) NOPASSWD: ALL
codice:exec.php <?php exec('sudo bash prova.sh'); ?>La cartella pippo non viene creata.codice:prova.sh #!/bin/bash mkdir pippo
Secondo voi dove sbaglio?

Rispondi quotando