• 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: Authorizing a user acct to run apps using ports below 1024?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Authorizing a user acct to run apps using ports below 1024?


  • Subject: Re: Authorizing a user acct to run apps using ports below 1024?
  • From: Josh Graessley <email@hidden>
  • Date: Wed, 01 Apr 2009 11:39:18 -0700


You'll want to write a helper tool that will pass back the opened and bound socket to your main process. I believe there's a good sample out there...BettherAuthorizationSample.


http://developer.apple.com/SampleCode/BetterAuthorizationSample/index.html

-josh

On Apr 1, 2009, at 11:26 AM, Thomas Tempelmann wrote:

By default, processes can't listen on ports < 1024 unless they're
running as root, if I got it right.

Is there some way to authorize an app to open a specific port for a
user account?

The particular app I'm writing is talking to a device in the LAN via
UDP only, and that device is unfortunately using a hard-coded port
number below 1024 for its reply. Since the app I'm writing shall be
written quickly and only serves to configure the device once in a
while, writing a two-tiered app with a deamon is kind of overkill,
and debugging gets more difficult that way, too.
That's why I'm looking for such an alternative solution.

--
Thomas Tempelmann, http://www.tempel.org/
_______________________________________________
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

_______________________________________________ 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
  • Follow-Ups:
    • Re: Authorizing a user acct to run apps using ports below 1024?
      • From: Thomas Tempelmann <email@hidden>
References: 
 >Authorizing a user acct to run apps using ports below 1024? (From: Thomas Tempelmann <email@hidden>)

  • Prev by Date: Authorizing a user acct to run apps using ports below 1024?
  • Next by Date: Re: Authorizing a user acct to run apps using ports below 1024?
  • Previous by thread: Authorizing a user acct to run apps using ports below 1024?
  • Next by thread: Re: Authorizing a user acct to run apps using ports below 1024?
  • Index(es):
    • Date
    • Thread