Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4484  / 2 Years ago, sun, august 7, 2022, 11:52:07

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.)


More From » printing

 Answers
7

One thing that might be worth trying is:



sudo apt-get purge cups


That will not only uninstall cups but also delete its configuration files in case one of them is wrong.



Then:



sudo apt-get install cups


Since the configuration files are now fresh you will have to reinstall your printers. If you use any other computer as a print server you may have to do this there as well.



This opensuse link describes what another user had to do to one of his cups configuration files to solve this error message.


[#37782] Monday, August 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fectlyole

Total Points: 64
Total Questions: 110
Total Answers: 110

Location: Nicaragua
Member since Thu, Feb 3, 2022
2 Years ago
fectlyole questions
Sun, May 8, 22, 02:54, 2 Years ago
Mon, Jun 21, 21, 16:56, 3 Years ago
Fri, Jul 9, 21, 17:44, 3 Years ago
;