You are not logged in.

#1 2015-06-21 17:20:48

nooblet
Member
Registered: 2015-06-21
Posts: 2

"Unable to add printer; Forbidden" when trying to add printer fromCUPS

When I try to add a printer from "localhost:631/admin", I get this output: "Add Printer Error; Unable to add printer: Forbidden".

Here is the error log:

E [21/Jun/2015:11:43:13 -0400] [Client 9] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [21/Jun/2015:11:43:13 -0400] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [21/Jun/2015:11:43:25 -0400] [Client 17] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [21/Jun/2015:11:44:10 -0400] [Client 28] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [21/Jun/2015:11:44:10 -0400] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [21/Jun/2015:11:44:13 -0400] [Client 32] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [21/Jun/2015:11:45:51 -0400] [Client 29] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [21/Jun/2015:11:45:51 -0400] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [21/Jun/2015:12:00:06 -0400] [Client 40] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [21/Jun/2015:12:00:06 -0400] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [21/Jun/2015:12:00:14 -0400] [Client 48] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [21/Jun/2015:12:00:14 -0400] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [21/Jun/2015:13:00:41 -0400] [Client 143] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [21/Jun/2015:13:00:41 -0400] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [21/Jun/2015:13:00:45 -0400] [Client 149] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [21/Jun/2015:13:14:46 -0400] [Client 163] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [21/Jun/2015:13:14:46 -0400] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden

It's the same error, just at different times. I don't understand this error message, so help would be appreciated. Also, I'm trying to get my "Brother HL-2140" printer to work. If any additional information is needed I'll gladly post it. Thanks in advance.

Offline

#2 2015-06-22 07:01:05

WFV
Member
From: ☭USSA⛧⭒⭒⭒⭒
Registered: 2013-04-23
Posts: 288

Re: "Unable to add printer; Forbidden" when trying to add printer fromCUPS

did you enter the IP address of the printer in the CUPS search?


∞ hard times make the strong, the strong make good times, good times make the weak, the weak make hard times ∞

Offline

#3 2016-12-16 17:58:08

hexd
Member
Registered: 2016-06-02
Posts: 3

Re: "Unable to add printer; Forbidden" when trying to add printer fromCUPS

Same here. I had to open "localhost:631/admin" on another browser to login again, but I found the solution afterwards. Actually, the problem is that there's no way to logout, cleaning/removing the cookies isn't enough, but you can "logout" by typing the new user name in the URL, like "root@localhost:631/admin".

That's probably because /etc/cups/cups-files.conf defines the groups for @SYSTEM users and /etc/cups/cups.conf requires @SYSTEM for accessing the resources at  "localhost:631/admin", so cups requires a @SYSTEM credentials (e.g. root), not your user ones.

Offline

#4 2016-12-17 19:56:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,308

Re: "Unable to add printer; Forbidden" when trying to add printer fromCUPS

Thank you for the relevant contribution -- good points. But, I am going to take this opportunity to now close this aged thread,


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB