Scriptproblem
Jan-Benedict Glaw
jbglaw at lug-owl.de
Tue Aug 27 10:11:03 CEST 2002
On Tue, 2002-08-27 10:04:57 +0200, Michael Ring <mring at ringnet.de>
wrote in message <000701c24da0$6f988d90$0a02a8c0 at michael>:
> Hallo
>
> Ich bin gerade dabei ein kleines Verwaltungsprogramm für meinen router in
> PHP zu schreiben.
> Nun hänge ich aber bei folgendem problem fest:
> Irgendwo im Script steht folgendes
> <?
> # ...
> exec("/etc/init.d/adsl restart", $ausgabe, $rueckgabe);
^^- Kein sudo
> # ...
> ?>
> Der Apache Errorlog meckert:
> /usr/sbin/pppd: no process killed
> /etc/init.d/adsl: line 17: /usr/sbin/pppd: Permission denied
> SIOCDELRT: Operation not permitted
> Die zweite Zeile macht mir Kopfzerbrechen.
> Ich habe alle nötigen Programme in die /etc/sudo eingetragen:
> www ALL = /usr/ifconfig /usr/sbin/pppd /sbin/route /usr/bin/killall
> /usr/sbin/pppoe /etc/init.d/adsl ALL
Richtig. ...aber hast Du auch sudo vor den Aufruf in Deinem PHP-Script
geschrieben? Nein.
MfG, JBG
--
Jan-Benedict Glaw . jbglaw at lug-owl.de . +49-172-7608481
-- New APT-Proxy written in shell script --
http://lug-owl.de/~jbglaw/software/ap2/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20020827/5bbd98a1/attachment.sig>
More information about the Linux
mailing list