You are here: Re: Problem with sudo « All PHP « IT news, forums, messages
Re: Problem with sudo

Posted by Koncept on 11/15/06 19:51

In article <l4H3h.31434$Fk1.63500@twister2.libero.it>, Shift
<shift@nospam.com> wrote:

> > Yes, something didn't go right with the execution, which the 1
> > indicates, if it had gone right it had returned 0.
> >
> > You could try with the shell_exec() instead and see if the shell
> > environment will give some advantages over using exec().
> >
> >
> > //Aho
>
> On old server with php 4.2.1 and apache 1.3 the esecution is correct;
> some php.ini parameter ?
>
> Shift
>


Do you have the -S flag option?

-S The -S (stdin) option causes sudo to read the password from the
standard input instead of the terminal device.

$ echo "password" | sudo -S whoami
root

--
Koncept <<
"The snake that cannot shed its skin perishes. So do the spirits who are
prevented from changing their opinions; they cease to be a spirit." -Nietzsche

 

Navigation:

[Reply to this 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

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