Why do lp and lpr return unauthorized?

Bug #972434 reported by cmnorton on 2012-04-03
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)

Bug Description

I'm running Ubuntu 10.04 with latest updates.

Here are my system's protections for lp and lpr.
root@steamboy:/usr/bin# ls -l lp
-rwxr-xr-x 1 root root 13540 2011-09-12 10:41 lp
root@steamboy:/usr/bin# ls -l lpr
-rwxr-xr-x 1 root root 13540 2011-09-12 10:41 lpr

Only if I sudo can I print something at the command line, else
I can unauthorized.

I do have an smb printer with username and password embedded, but I believe this problem occurred during one of the 10.04 updates. So my question is what would cause lp or lpr to return Unauthorized?

ics@steamboy:~/icsdev$ lp x.tmp
lp: Unauthorized
ics@steamboy:~/icsdev$ lpr x.tmp
lpr: Unauthorized

(x.tmp is a real file.)

cmnorton (octopusgrabbus) wrote :

What I'm hoping someone can suggest is how to live with what is happening. My user name is part of lpadmin. To what other groups should I belong, so that applications I launch can print? Would doing that make a difference?

cmnorton (octopusgrabbus) wrote :

Here is a workaround confirmed for this problem. I just confirmed it by testing, and it works.


Till Kamppeter (till-kamppeter) wrote :

From aan OpenSUSE forunm thread linked in the linked answer:

Check your printer's entry in /etc/cups/printers.conf. If it has "OpPolicy" set to "authenticated" set it back to "default". Make sure you stop CUPS before editing /etc/cups/printers.conf and start CUPS afterwards. Now your printer should work again.

Changed in cups (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions