Mon
目次
Location
/usr/web/bin/$objtype/mon
Usage
mon [-d] [-u user] [-p passwdfile] cmdpath argument ...
Description
mon is a program that is designed to be used with Pegasus httpd to protect against malicious cgi programs that attempt to kill httpd.
mon invokes httpd to run as user and monitors the httpd to invoke subsequent httpd if it is killed by someone.
mon should be executed by host owner.
cmdpath is the path of Pegasus httpd, and arguments are of httpd.
options are:
-d: run as a daemon
-
-u user: run as user user. usually web
-
-p passwdfile: password required to become user is placed in this file
-
Example
bind -a /usr/web/bin/386 /bin
mon -du web -p /usr/web/lib/passwd /usr/local/bin/$cputype/httpd -suM
Note
Be careful that the contents in /usr/web/lib/passwd on network file server may be snooped by someone.