Reply to Re: Problem with sudo

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация