Re: exec() problem
| From: | Ashley Sheridan | Date: | Sat, 14 Nov 2009 21:43:56 +0000 |
| Subject: | Re: exec() problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299823@lists.php.net to get a copy of this message | ||
On Sat, 2009-11-14 at 22:20 +0100, A. Mannini wrote:
> Hi all,
>
> i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache
> 2.2.13. Safe mode is OFF and Apache isn't chrooted.
>
> I would run /usr/lib/mailman/bin/find_member -l <list> <email> so i used
> exec("sudo run /usr/lib/mailman/bin/find_member -l <list>
> <email>",$output) and set /etc/sudoers with apache ALL=NOPASSWD:
> /usr/lib/mailman/bin/find_member but it doesn't work.
>
> I tried simple commands "/bin/ls" works, "sudo -V" work but "sudo
> /bin/ls" doesn't work.
>
> I get return code 1 and no messages in logs..
>
> What is worng?
>
> Thanks
>
> Alessandro
>
Did you mean to put 'run' into the exec call?
Thanks,
Ash
http://www.ashleysheridan.co.uk