Created
March 10, 2016 20:35
-
-
Save krispayne/0783888e5f499652ae12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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