Re: user access privileges to plist in /library/preferences
Re: user access privileges to plist in /library/preferences
- Subject: Re: user access privileges to plist in /library/preferences
- From: Memo Akten <email@hidden>
- Date: Fri, 3 Apr 2009 22:07:10 +0100
On 1 Apr 2009, at 21:55, Greg Guerin wrote:
Do you understand the Posix permissions and ownership concepts, as
applied to files and dirs? If not, you need to learn those.
Do you understand the Posix 'umask' concept and its default value?
Again, you should learn that.
Finally, you will need to provide non-nil attributes to
createDirectoryAtPath: that specifies all-read, all-write, and all-
search permissions on the created dir. If you don't, then the
directory will not be writable to anyone except its owner (the user
account that creates it), due to how the default umask value affects
the created dirs initial permissions.
Thanks, I'll look into it.
Whenever you write the log-file, you may also need to specify all-
write permissions. It may depend on how you write the file.
I'm using -[NSDictionary writeToFile:atomically:] so I guess this
isn't an option. But seeing as this file will not exist unless it was
created by my app, and neither will the containing folder which I will
create with full permissions, any file created in this folder will
inherit the parents permissions?
Cheers,
Memo.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden