NYCPHP Meetup

NYPHP.org

[nycphp-talk] Safely running root commands

csnyder chsnyder at gmail.com
Sun Feb 27 22:59:57 EST 2005


I don't like any of those options.

Are you sure it isn't possible to set this up in such a way that either:

1) cron can run the necessary commands as root, and you scripts just
pick up the data from a neutral location

or 

2) you write a daemon using PHP that runs as root, and listens to a
some port or file for a "go" command, runs the commands, and then
returns the results

Either of those seems preferable to giving the webserver any kind of
escalated privileges.



More information about the talk mailing list