Re: user access privileges to plist in
/library/preferences



Hi Greg, /Users/Shared may work, I'll give that a shot thanks.

On 27 Mar 2009, at 18:26, Greg Guerin wrote:


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 (Cocoa-dev@xxxxxxxxxxxxxxx)

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:
http://lists.apple.com/mailman/options/cocoa-dev/memo%40memo.tv

This email sent to memo@xxxxxxx

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@xxxxxxxxxxxxxxx)

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:
http://lists.apple.com/mailman/options/cocoa-dev/maillists%40codeha.us

This em...

ail sent to maillists@xxxxxxxxx



Privacy