Skip to content

Instantly share code, notes, and snippets.

@macmule
Created November 24, 2021 20:50
Show Gist options
  • Select an option

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

Select an option

Save macmule/2c277cdf16d36c5c2e0fa9502c15e455 to your computer and use it in GitHub Desktop.
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
#############
#
# Add all users to lpadmin
#
#############
sudo dseditgroup -o edit -n /Local/Default -a everyone -t group lpadmin
#############
#
# Mac OS X v10.6: Generating a Kerberos Ticket Granting Ticket (TGT) during an Active Directory user's initial login
# http://support.apple.com/kb/HT4100
#
#############
sudo cp /etc/authorization /etc/authorization.bak
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