NYCPHP Meetup

NYPHP.org

[nycphp-talk] Safely running root commands

brian at vermonster.com brian at vermonster.com
Sun Feb 27 23:21:47 EST 2005


Quoting csnyder <chsnyder at gmail.com>:
>
> 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
>

This worked really well for me.  I recently used this approach (although the
daemon-portion was written in Perl) and found you can add a nice security
boundary between the PHP script and the system.






More information about the talk mailing list