Skip to content

Instantly share code, notes, and snippets.

@macmule
Created November 28, 2021 21:36
Show Gist options
  • Save macmule/a97b71ca4a6e5331aae17d4baca0069f to your computer and use it in GitHub Desktop.
Save macmule/a97b71ca4a6e5331aae17d4baca0069f to your computer and use it in GitHub Desktop.
#!/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