Re: Can't open server socket port
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.