Re: Why is Leopard annoying my users?
Re: Why is Leopard annoying my users?
- Subject: Re: Why is Leopard annoying my users?
- From: James Bucanek <email@hidden>
- Date: Mon, 26 Nov 2007 08:32:33 -0700
Andreas Fink <mailto:email@hidden> wrote (Monday,
November 26, 2007 3:22 AM +0100):
I guess your easiest way is to run it at startup as root and then
change to the user you want in your daemon. Lots of system wide
daemons do that like Apache who executes as "nobody" or "http" but
get started as "root" initially.
launchd has that covered already. In the configuration plist
that describes your daemon for launchd, there's a "UserName"
property. Set that to the BSD account name of the user you want
the process to run as and launchd will start it that way. This
is exactly what I'm doing now, and what many of the system
daemons do in Tiger/Leopard (not Apache, 'cause it's old school).
See 'man launchd.plist' for details.
--
James Bucanek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden