Unlocking Printer Preferences

andrewstandifor
New Contributor

• We have a user who had their printing preferences unlocked with these commands:

/usr/bin/security authorizationdb read system.preferences.printing > /tmp/system.preferences.printing.plist
/usr/bin/defaults write /tmp/system.preferences.printing.plist group everyone
/usr/bin/security authorizationdb write system.preferences.printing < /tmp/system.preferences.printing.plist

• The site that provided the information said this command would also be needed but it comes back with an error

/usr/sbin/dseditgroup -o edit -n /Local/Default -a “everyone” -t group lpadmin

• When the user attempts to view the printer preferences; they’re met with this error. •

c1c419ad079a42a9ad069070409234ef

2 REPLIES 2

sshort
Valued Contributor

That command might need sudo if run by the user and/or an admin needs to add this user to the "Print Administrators" group that's called out in the pop-up warning

Chris_Hafner
Valued Contributor II

That's an interesting way to do it. We're a little simpler here. Our firstRun script contains the following commands and are run as root.

/usr/sbin/dseditgroup -o edit -n /Local/Default -a everyone -t group lpadmin
/usr/sbin/security authorizationdb write system.preferences allow
/usr/sbin/security authorizationdb write system.preferences.printing allow
/usr/sbin/security authorizationdb write system.print.operator allow