Jason Wong wrote:
> On Tuesday 13 January 2004 06:46, Jas wrote:
> 
> [Please trim your posts!]
> 
> 
>>Just tried that and I am getting the same error.  I guess what I am
>>really looking for is a way to have apache restart the service without
>>adding the apache user in the 'sudoers' file.
> 
> 
> If you really must restart system services over insecure interfaces such as a 
> web browser then consider using something which was 'tailor-made' for the 
> purpose eg Webmin. Webmin is not ideal, but since you are having to ask the 
> question I would assume that it would be better than anything you could come 
> up with at this moment in time.
> 
> If you still want develop your own, then have a look in the archives for 
> possible solutions using sudo, or cronjobs.
> 
So instead of having a function to run a bash script which would restart
the dhcp service after a new dhcpd.conf file has been written (which
would run under the same user as the httpd service). You are suggesting
to run a cron job which would maybe run every 5 or 10 minutes to run the
bash script which restarts the service?  Would this be the most secure
method of accomplishing such a task?  Or is there a way to put a hook in
the bash script which php could execute as a privledged user?
Thanks for the insight,
Jas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to