• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why is Leopard annoying my users?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Why is Leopard annoying my users? (From: Andreas Fink <email@hidden>)

  • Prev by Date: Re: Why is Leopard annoying my users?
  • Next by Date: Re: Scriptable Network Preferences
  • Previous by thread: Re: Why is Leopard annoying my users?
  • Next by thread: Is there any difference in the network architecture in Leopard ?
  • Index(es):
    • Date
    • Thread