View Single Post

   
  #1 (permalink)  
Old 02-20-2008, 06:30 AM
4partee
 
Posts: n/a
Default Unable to get printer status (client-error-forbidden)!

If you have tried to set up a shared printer using cups via the web
setup(localhost:631), you have probably had this error message.

Viewing the documentation under Help, one is informed that the printers
are set up to share by default. This is a misstatement.

Given the above, you will have likely futzed around trying to figure out
what is wrong with:

file:/path/to/filename.prn
http://hostname:631/ipp/
http://hostname:631/ipp/port1
ipp://hostname/ipp/
ipp://hostname/ipp/port1
lpd://hostname/queue
socket://hostname
socket://hostname:9100

during printer setup from the client. Here is an example that worked for
me:

Description:
Location:
Printer State: idle, accepting jobs.
": Print file accepted - job ID 21."
Device URI: http://enterprise:631/printers/hp656

Now, the problem is with permissions; and it is caused by a restriction
in /etc/cups/cupsd.conf, a file that is not configurable by the web setup.

Look in the file for:
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

As you see, access to anything cups is restricted, so comment out
the three commands. You could instead, add an Allow From 192.168.0.0/16.
Like the surgeon said, suture self.

--
John & Sue
'04 GMC Safari
'99 Starcraft Starflyer (Shuttlecraft)

Reply With Quote