You are here: Re: filehandling and system() permissions. « PHP Programming Language « IT news, forums, messages
Re: filehandling and system() permissions.

Posted by Jerry Stuckle on 04/02/06 05:41

mikeisgreat@gmail.com wrote:
> Well, correct...
>
> it would be apache on apache .. but the admin tool would run on a
> machine sperate from the webservers it needs to restart, but on the
> same network
>
> I have a script that restartarts all three apaches ....
>
> is there a safer way to run this script via apache? The script is run
> my a user that has 'sudo' privz to restart all apaches with no
> password.
>
> I am guessing there is not easy way to tell apache to run this script
> as this user?
>
> thanks.
>

There's no safe way to do it. Remember - if you can do it via the website, a
hacker can do it, also.

My suggestion - stick with the ssh script.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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