Skip to content

Instantly share code, notes, and snippets.

@macmule
Created November 28, 2021 21:36
Show Gist options
  • Select an option

  • Save macmule/a97b71ca4a6e5331aae17d4baca0069f to your computer and use it in GitHub Desktop.

Select an option

Save macmule/a97b71ca4a6e5331aae17d4baca0069f to your computer and use it in GitHub Desktop.

Revisions

  1. macmule created this gist Nov 28, 2021.
    8 changes: 8 additions & 0 deletions Unlock-Secure-Systems-Preferences-Panes.sh
    Original 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