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

2009-04-03 Thread Memo Akten
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

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

2009-04-03 Thread Greg Guerin
Memo Akten wrote: 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

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

2009-04-01 Thread Memo Akten
Hi Greg, actually /Users/Shared didn't work either. If I am logged in as admin it works, but if I am logged in as a normal user it doesn't. My code is: #define LOG_PATH_FOLDER @/Users/Shared/Library/Preferences/ #define LOG_FILENAME@MyLog.plist #define LOG_PATH

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

2009-04-01 Thread Greg Guerin
Memo Akten wrote: Hi Greg, actually /Users/Shared didn't work either. If I am logged in as admin it works, but if I am logged in as a normal user it doesn't. My code is: #define LOG_PATH_FOLDER @/Users/Shared/Library/Preferences/ #define LOG_FILENAME @MyLog.plist #define LOG_PATH

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

2009-03-29 Thread Memo Akten
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

user access privileges to plist in /library/preferences

2009-03-27 Thread memo
Hi, I'd like to load/save some global preferences of my app. I have it all as an NSMutableDictionary and I load/save it as a plist in /library/preferences. If the user logged in does not have admin rights obviously the file does not save. How can I overcome this problem programatically from my

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

2009-03-27 Thread memo
Hi Sjors, thanks for the swift reply. 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?

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

2009-03-27 Thread Jerry Krinock
On 2009 Mar 27, at 10:44, m...@memo.tv wrote: Hi, I'd like to load/save some global preferences of my app. I have it all as an NSMutableDictionary and I load/save it as a plist in /library/preferences. If the user logged in does not have admin rights obviously the file does not save. How

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

2009-03-27 Thread memo
Thanks Jerry, thats perfect thanks. On Fri, 27 Mar 2009 10:58:10 -0700, Jerry Krinock je...@ieee.org wrote: On 2009 Mar 27, at 10:44, m...@memo.tv wrote: Hi, I'd like to load/save some global preferences of my app. I have it all as an NSMutableDictionary and I load/save it as a plist in

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

2009-03-27 Thread Greg Guerin
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

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

2009-03-27 Thread Sjors van Berkel
Hi, if you save the file in ~/library/preferences/ the user will have access to the files because it is in the local user directory. Hope that helps, Sjors Op 27 mrt 2009, om 18:44 heeft m...@memo.tv m...@memo.tv het volgende geschreven: Hi, I'd like to load/save some global