You are here: Re: how can I run root commands in php « PHP Language « IT news, forums, messages
Re: how can I run root commands in php

Posted by Erwin Moller on 01/07/08 09:28

Jonas Werres wrote:
> It is quite easy:
> If PHP hast root permission, it can run root tasks. And we don't want
> that. Really. So Erwins suggestion is an immensely stupid idea.

Jonas,

Did you actually read my suggestion?
Or do you shout stuff like this as default behaviour?

Erwin Moller


> The least thing you can do is use sudo restriced to the passwd command.
> But do we want PHP to have full access to passwd? No.
> I don't even use it to copy some files for maildrop.
>
> So my suggestion is: Let the webserver PHP write into a db or file whats
> absolutly necessary. In this case: username and password, I think.
>
> Then run a shellscript (or even better a compiled program) with those
> informations (outside webroot, with cron).

 

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

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