Permissions when saving file
Permissions when saving file
- Subject: Permissions when saving file
- From: Matt Jaffa <email@hidden>
- Date: Wed, 14 Apr 2004 11:03:26 -0600
Hi,
I am using the writeToFile: atomically:
method within the NSArray,
The problem is if my daemon writes the file the permissions become
system as the owner
when I want it to be the current logged in user.
Because the other part of my application is a SystemPreference and
when it tries to write to the file it can't because SystemPreferences
runs as the current user.
Is there a way to have the permissions be saved as the current user
within my daemon running as root?
It is very strange it was working before, I think maybe because my
SystemPreferences App saved first to the file making it owned by me(the
current user) and then when the daemon saved it, it retained the
ownership as me.
Does having the atomically:NO or :YES affect this problem at all?
Thanks,
Matt
_______________________________________________
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.