I have been wanting to update my “Power User” https://jamfnation.jamfsoftware.com/discussion.html?id=5666 script for some time now to leverage the “security” command.
Using the info from Rich Trouton's http://derflounder.wordpress.com/2014/02/16/managing-the-authorization-database-in-os-x-mavericks/, I know how to allow access to specific system preferences.
For instance to allow non-admin users to modify the Date & Time prefs:
security authorizationdb write system.preferences allow
security authorizationdb write system.preferences.datetime allow
That works.
I also want to be able to undo this, like I was able to in my previous “Power User” script.
You would think this would work:
security authorizationdb write system.preferences.datetime deny
The command replies NO. :-(
Thoughts?