Skip to content

Instantly share code, notes, and snippets.

@krispayne
Created March 10, 2016 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krispayne/0783888e5f499652ae12 to your computer and use it in GitHub Desktop.
Save krispayne/0783888e5f499652ae12 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Allow anyone to install a printer
# https://jamfnation.jamfsoftware.com/discussion.html?id=14640
echo Adding users to lpadmin
dseditgroup -o edit -n /Local/Default -a everyone -t group lpadmin
defaults write /System/Library/LaunchAgents/com.apple.printuitool.agent.plist Disabled -bool YES
defaults write /System/Library/LaunchAgents/com.apple.printuitool.agent.plist EnableTransactions -bool NO
security authorizationdb write system.preferences allow
security authorizationdb write system.print.operator allow
echo All set.
exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment