Peter C wrote:

Graham, I used to store serial number codes for all users, in this directory.

Looks like I have change it to save it user library directory.


The /Users/Shared/ directory is public-writable, with sticky-bit set (unless that changed in Lion, too). See 'man sticky' for an explanation of the sticky-bit. See the sample code CFPrefTopScores for example code.

The convention is to create a sub-directory there, not write files directly into /Users/Shared/. If you put a globally readable file there, and you want any user to be able to modify it, be sure to apply the correct permissions to the sub-dir and to the prefs file itself.

  -- GG

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to