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: Greg Guerin <email@hidden>
- Date: Fri, 27 Mar 2009 11:26:57 -0700
I'd like the file to be user independent, so it should always read/
write to
the same file whoever logs in (it actually collects stats of
usage). Is
there a better place to store the file? (has to be outside of /
users) How
can I overcome the privileges issue?
If it's just collecting stats of usage, then why don't you use a
public-readable file in each user's private-writable Library dir.
Or store private-writable public-readable per-user plists in a public-
writable dir like /Users/Shared. Or if /Users/Shared is
unacceptable, then use another dir created for your app, or explain
why /Users/Shared is unacceptable.
If you can avoid having to use AEWP and elevated privileges, it will
greatly simplify things and enhance security.
Just because you *can* do something with AEWP doesn't mean you *should*.
-- GG
_______________________________________________
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