Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Arun Vir Singh

macrumors newbie
Original poster
Aug 22, 2011
2
0
Hi All,
I have one installer created using Packagemaker. The installer writes some files to /Library/Preferences folder using writeToFile method of NSData class.
The installer used to create files successfully on Leopard and Snow Leopard when login with admin user. But in Lion 10.7 there are problems in writing files to Preferences folder. I found that earlier admin used to be the default group to /Library/Preferences directory. But with Lion it has been changed to Wheel group.

We can add admin group to Sharing and Permissions using Get Info Dialog for Preferences folder. I need some suggestion for getting this done either Problematically using Cocoa or Bash script?

Would be better if we can add a group to the permissions of a directory through Cocoa?

Thank you
 
Hi All,
I have one installer created using Packagemaker. The installer writes some files to /Library/Preferences folder using writeToFile method of NSData class.
The installer used to create files successfully on Leopard and Snow Leopard when login with admin user. But in Lion 10.7 there are problems in writing files to Preferences folder. I found that earlier admin used to be the default group to /Library/Preferences directory. But with Lion it has been changed to Wheel group.

We can add admin group to Sharing and Permissions using Get Info Dialog for Preferences folder. I need some suggestion for getting this done either Problematically using Cocoa or Bash script?

Would be better if we can add a group to the permissions of a directory through Cocoa?

Thank you

This is a security enhancement. Apple doesn't want everybody to be able to write to /Library. You better redesign your app to make it unnecessary to write to /Library.
 
This is a security enhancement. Apple doesn't want everybody to be able to write to /Library. You better redesign your app to make it unnecessary to write to /Library.

First thanks for your reply. Can you tell me what is the best place to keep Global preferences for all the users in this changed scenario of permissions on Lion OS or I need to use some authorization technique to handle such scenario.

Thanks
 
First thanks for your reply. Can you tell me what is the best place to keep Global preferences for all the users in this changed scenario of permissions on Lion OS or I need to use some authorization technique to handle such scenario.

Thanks

You shouldn't keep global preferences. Preferences should be per user. Assume two employees sharing the same desk and computer, one working in the morning, one in the afternoon. When one changes the preferences, that shouldn't affect the preferences of the other person.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.