Re: Setting Explicit Socket Permissions!!
Re: Setting Explicit Socket Permissions!!
- Subject: Re: Setting Explicit Socket Permissions!!
- From: "Justin C. Walker" <email@hidden>
- Date: Sun, 15 Oct 2006 20:45:48 -0700
On Oct 15, 2006, at 20:30 , Ravi Yadav wrote:
Hi,
Once I have installed my app, Every time its loaded my app creates
and listens on a specific socket ie /tmp/MYSOCKET.
Every time the app load and creates the socket I want to :-
1)Set some specific permissions on /tmp/MYSOCKET, irrespective of
what socket permissions it has been created with by default.
How can I achieve this in my app programitically?
"man 2 chmod"
Note that you have to have permissions to modify directory entries;
in particular, if you aren't running as root, this will depend on the
owner and group associated to the directory enty.
Justin
--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
-----------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden