Skip to content

Instantly share code, notes, and snippets.

@macmule
Created November 24, 2021 21:08
Show Gist options
  • Select an option

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

Select an option

Save macmule/a04b4af376893dcf6811544382025baa to your computer and use it in GitHub Desktop.
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
#Backup the original authorization file
sudo cp /etc/authorization /etc/authorization.bak
#Modify /etc/authorization to create a kerberos ticket at login
sudo /usr/libexec/PlistBuddy -c "Add :rights:system.login.console:mechanisms:11 string "builtin:krb5store,privileged"" /etc/authorization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment