Re: Why is Leopard annoying my users?
Re: Why is Leopard annoying my users?
- Subject: Re: Why is Leopard annoying my users?
- From: Quinn <email@hidden>
- Date: Mon, 26 Nov 2007 13:42:54 +0000
At 11:22 +0100 26/11/07, Andreas Fink wrote:
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.
The problem with this approach is that a process's UID is only one
element of its context that affects the behaviour of the system
frameworks. Specifically, if you're doing UNIXy things (say, you
restrict your framework usage to the System framework), this approach
is acceptable [1]. OTOH, if you want to use arbitrary Mac OS X
frameworks, you will run into trouble if you only switch the UID.
These ideas are discussed in gory detail in TN2083 "Daemons and Agents".
<http://developer.apple.com/technotes/tn2005/tn2083.html>
At 8:49 -0700 21/11/07, James Bucanek wrote:
The problem is this: This is a backup and document archiving solution.
Thanks for all that info. I can't think of an obvious approach that
meets all of your requirements. I'd really like to continue this
discussion over on launchd-dev:
<http://lists.macosforge.org/mailman/listinfo/launchd-dev>
There are a couple of reasons for this:
A. We've strayed way outside of the scope of MacNetworkProg.
B. The launchd engineering team hangs out on launchd-dev, and I think
they should know about your product and its needs.
Please start a thread on that list, and I'll see you over there!
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
[1] For example, you can't be guaranteed to access the user's home
directory while the user is logged out (for example, AFP and
FileVault home directories).
_______________________________________________
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