After quite a bit of poking around, I ran across pp. 38-41 of "Mac OS X
for Unix Geeks" (Jepson & Rothman, O'Reilly), which gives some explicit
information on setting up Startup scripts.  With this assistance, I was
able to get my startup script going (whew!).

I then noticed that the script (and any daemons it might start up) was
running as root.  Ungood.  I worked around the problem by setting the
script "setuid nobody", but this is not a really robust solution.  I
also filed a bug, suggesting that Apple add a startup parameter (e.g.,
RunAs) that would set the username; the default should be nobody.

-r

P.S.  Is there any other documentation to recommend on Startup scripts?
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm    - my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc     - Prime Time Freeware's Darwin Collection

Reply via email to