|
Posted by J.O. Aho on 11/06/06 12:26
Shift wrote:
> I can't execute a program with sudo;
> I have wrote this example :
>
> <?
> $r1=exec("ls /usr",$lines,$errcod);
> echo "r1=$r1, errcod=$errcod<br>";
>
> $r2=exec("/usr/bin/sudo -u user ls /usr",$lines,$errcod);
> echo "r2=$r2, errcod=$errcod<br>";
> ?>
>
> "user" is without password and is in /etc/sudoers
But has apache (the users as apache is run as) the right to sudo?
//Aho
[Back to original message]
|