ich habe ein problem mit sudo, bei dem ich mit meinem latein am ende bin.
im pfad /var/www/web8/html/ liegt ein shell-script conv.sh das ich einwandfrei über die konsole ausführen kann.
dieses script soll aber von einem php-script ausgeführt werden. aber damit passiert überhaupt nichts. in diesem php-script steht:
Code: Select all
exec("/usr/bin/sudo /var/www/web8/html/conv.sh");
Code: Select all
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
# Host alias specification
Host_Alias LOCALHOST = 127.0.0.1
# User alias specification
User_Alias APACHE = www-data, apache
# Cmnd alias specification
# User privilege specification
root ALL = (ALL) ALL
APACHE LOCALHOST = NOPASSWD: /var/www/web8/html/conv.sh
was habe ich übersehen?
danke & gruß,
dirk