Problem mit sudo

Apache, Lighttpd, nginx, Cherokee
Post Reply
dirkv99
Posts: 54
Joined: 2003-07-31 16:01
 

Problem mit sudo

Post by dirkv99 »

hallo zusammen,

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");

in meiner sudoer-datei in /etc, die mit visudo editiert wurde, steht folgendes:

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

auf dem server läuft debian woody und confixx 3.0. safe_mode ist off (httpd-zusatzeinträge in confixx "php_admin_value safe_mode off").

was habe ich übersehen?

danke & gruß,

dirk
dirkv99
Posts: 54
Joined: 2003-07-31 16:01
 

Re: Problem mit sudo

Post by dirkv99 »

schon erledigt!

das problem war, dass die httpd-zusatzeinträge (safe_mode) in confixx nur für die domain ohne "www" gesetzt waren. jetzt klappt alles bestens...

trotzdem danke!

dirk
Post Reply