Created
November 28, 2021 21:36
-
-
Save macmule/a97b71ca4a6e5331aae17d4baca0069f to your computer and use it in GitHub Desktop.
Revisions
-
macmule created this gist
Nov 28, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ #!/bin/bash #Backup the original authorization file /bin/cp /etc/authorization /etc/authorization.original.backup #Modify /etc/authorization to allow any member of the everyone group access to unlock preferences /usr/libexec/PlistBuddy -c "Set :rights:system.preferences:group everyone" /etc/authorization /usr/libexec/PlistBuddy -c "Set :rights:system.preferences:shared true" /etc/authorization