Salve a tutti!
Devo abilitare l'utente www-data a usare /usr/sbin/postsuper senza richiedere la password... che sintassi posso usare?
Riferimento... ultimo messaggio
http://forum.html.it/forum/showthrea...readid=2923746
Salve a tutti!
Devo abilitare l'utente www-data a usare /usr/sbin/postsuper senza richiedere la password... che sintassi posso usare?
Riferimento... ultimo messaggio
http://forum.html.it/forum/showthrea...readid=2923746
Ultima modifica di Threepwood; 17-03-2015 a 18:06
Guybrush Threepwood
non ho capito se hai provato come dice all'ultimo post
https://ubuntrucchi.wordpress.com/20...a-di-password/
www-data ALL=(ALL) NOPASSWD: /usr/sbin/postsuper
-bash: syntax error near unexpected token `('
Guybrush Threepwood
dai editato il file con
codice:sudo visudo
e poi aggiunto la riga?
Si ho aggiunto quella riga, fatto ctrl+X e salvando i cambiamenti... ma eseguendo da php sudo -u www-data postsuper -d ALL
mi torna postsuper: fatal: use of this command is reserved for the superuser
Guybrush Threepwood
Si il comando da shell (root) funziona
www-data:x:33:33:www-data:/var/www:/bin/sh
Guybrush Threepwood
invece.. eseguendolo da un terminale da utente normale?
sudo -u www-data postsuper -d ALL
provato con:
sudo postsuper -d ALL
Così, da php, sembra funzionare
Grazie a tutti!
Guybrush Threepwood