• 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: Can't open server socket port
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't open server socket port


  • Subject: Re: Can't open server socket port
  • From: Todd deGruyl <email@hidden>
  • Date: Sat, 15 Jun 2002 12:56:24 -0400

You can use authorization services
(<http://developer.apple.com/techpubs/macosx/CoreTechnologies/securityservices/
authservices.html>)
to gain root access within your program the apple way, or you can do it
the unix way--the *uid functions.

Of course, you could also run the program as root/setuid-root, but that
can open the door to some potential security problems.

--Todd

On Saturday, June 15, 2002, at 03:07 AM, Cameron Hayne wrote:

> email@hidden wrote:
>> I'm trying to open a server socket port for example in a low number
>> (81, 1000,etc) but I can't. If I use a large
>> number like 20000 there is no problem. Is this a security limitation?
>
> Yes - only processes run by root (user id 0) can bind to socket ports
> less than 1024.
> ... Cameron
> --
> Cameron Hayne (email@hidden)
> Hayne of Tintagel
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Can't open server socket port (From: Cameron Hayne <email@hidden>)

  • Prev by Date: C question.
  • Next by Date: Re: C question.
  • Previous by thread: Re: Can't open server socket port
  • Next by thread: Re: NSMenuItem setImage:
  • Index(es):
    • Date
    • Thread