Skip to main content
Question

Scripting /etc/authorization


Hello all.

One of the things I've sometimes wanted to do is figure out how to do some text manipulation in /etc/authorization in order to allow non-admins to administer the timezone settings. Perhaps there is a better way, but in order to allow non-admins to manage timezone settings, I've used this KB from apple: http://support.apple.com/kb/TA23576. It describes the changes to the Authorization file. I can do this manually, but it would be much nicer to scope something to laptop users and let it happen automatically.

Of course, it would be easy to package up a modified authorization file and remove/replace, but as always, that might lead to something less desirable down the road. A scripted file manipulation seems like a better way that won't blow away other changes. Unfortunately, my scripting skills are on par with my golf game especially when it comes to something like text manipulation.

Anyone have an easier way (like mcx and a checkbox somewhere to "allow changes by....") or thoughts on scripting this?

Thanks!
Aaron

2 replies

bentoms
Forum|alt.badge.img+35
  • Legendary Contributor
  • 4331 replies
  • August 8, 2011

This will allow all users to unlock secure system preferences (those that are padlocked).

http://macmule.com/2010/11/18/unlock-each-secure-system-preference-allow-all-users-to-unlock/

Regards,

Ben.


  • 0 replies
  • August 8, 2011

I've used plistbuddy to script changes to /etc/authz. One fun gotcha is occasionally Apple updates will overwrite it.
On Aug 8, 2011, at 2:32 PM, Aaron wrote:

--Jim


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings