So my questions are:
What would cause lp or lpr to return Unauthorized?
What can I do to fix this problem?
I'm running Ubuntu 10.04 LTS with latest updates. This worked and then stopped after an update. The problem is I don't remember when it stopped. My user is part of lpadmin, which allows me to create and configure printers through the CUPS interface.
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 using lp
or lpr
.
ics@steamboy:~/icsdev$ lp x.tmp
lp: Unauthorized
ics@steamboy:~/icsdev$ lpr x.tmp
lpr: Unauthorized
(x.tmp
is a real file.)