Re: Running daemon in non-root account, but listening below 1024?
Re: Running daemon in non-root account, but listening below 1024?
- Subject: Re: Running daemon in non-root account, but listening below 1024?
- From: Chris Suter <email@hidden>
- Date: Fri, 13 Aug 2010 14:22:26 +1000
Hi Andre,
On Fri, Aug 13, 2010 at 2:08 PM, Andre-John Mas
<email@hidden> wrote:
I want to run a server that will listen on a port below 1024, but I do not wish it to run as root. Ideally I would create a dedicated account for this daemon and then grant it permission to listen of the specified privileged ports. Is this possible on Darwin/MacOS X? If not what alternatives can you suggest?
Yes. Look at launchd. You can have it listen to a port below 1024 (like inetd), and run it as whatever user you like. You'll obviously need elevated privileges to install the launchd property list.
Kind regards,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden