[Pkg-cups-devel] Bug#616718: cups: Attempting to add a printer gives a forbidden error
Jonathan Nieder
jrnieder at gmail.com
Fri Mar 25 05:51:16 UTC 2011
Hi,
Aaron Barany wrote:
> After a fresh install of cups, if I attempt to add a printer from
> "http://localhost:631" I get a forbidden error. This occurs on the first page
> before I have a chance to add any information.
I tried something similar with cups 1.4.6-3. Here's what I did:
1. Visit <http://localhost:631/admin> with chromium.
2. Click "Add Printer". A dialog box appeared asking for a username and
password.
3. Type my (unprivileged) username and password.
The response:
Add Printer Error
Unable to add printer:
Forbidden
Going back and trying to click "Add Printer" again did not give the user/password
dialog box again. The access log from the administration tab says
localhost - - [25/Mar/2011:00:48:00 -0500] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
localhost - jrn [25/Mar/2011:00:48:00 -0500] "POST / HTTP/1.1" 403 91 CUPS-Get-Devices successful-ok
localhost - jrn [25/Mar/2011:00:47:59 -0500] "POST /admin/ HTTP/1.1" 200 1873 - -
The error log says
E [25/Mar/2011:00:48:00 -0500] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [25/Mar/2011:00:48:00 -0500] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
The configuration file says
SystemGroup lpadmin
so presumably I ought to add myself to group lpadmin. But in any
event, the inability to get back to step 2 (the dialog box allowing
me to choose a username and password) is puzzling.
More information about the Pkg-cups-devel
mailing list