Created
November 28, 2021 21:36
-
-
Save macmule/a97b71ca4a6e5331aae17d4baca0069f to your computer and use it in GitHub Desktop.
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 characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment