Link to home
Create AccountLog in
Avatar of DanRaposo
DanRaposoFlag for United States of America

asked on

How can I use CUPS with my Netowrk Printer

Sorry if this is vague, but I have never used CUPS and never really needed to print from Linux before.   Basically what I want to do is allow logged in users to print to network printers.   These printers are usually accessed via IP.   I was considering using CUPS to do this.   By the way .. I am running Fedora Core 6.

I installed CUPS and Ghostscript, but I cannot get to the admin page.  When I enter http://myserver:631/admin I get a
403 Fornidden message.

In my output I get the following


d [02/Oct/2007:11:31:37 -0400] cupsdAcceptClient(lis=0x816d8b0) 3 Clients = 0
D [02/Oct/2007:11:31:37 -0400] cupsdAcceptClient: skipping getpeercon()
D [02/Oct/2007:11:31:37 -0400] cupsdAcceptClient: 8 from 192.168.0.59:631 (IPv4)
d [02/Oct/2007:11:31:37 -0400] cupsdAcceptClient: 8 connected to server on ebingo:631
d [02/Oct/2007:11:31:37 -0400] cupsdAcceptClient: Adding fd 8 to InputSet...
d [02/Oct/2007:11:31:37 -0400] cupsdCheckJobs: 0 active jobs, sleeping=0, reload=0
d [02/Oct/2007:11:31:37 -0400] cupsdReadClient: 8, used=0, file=-1 state=0
D [02/Oct/2007:11:31:37 -0400] cupsdReadClient: 8 GET / HTTP/1.1
D [02/Oct/2007:11:31:37 -0400] cupsdReadClient: 8 Browser asked for language "en-us.utf-8"...
d [02/Oct/2007:11:31:37 -0400] cupsdFindBest: uri = "/"...
d [02/Oct/2007:11:31:37 -0400] cupsdFindBest: Location CUPS_INTERNAL_BROWSE_ACL Limit 0
d [02/Oct/2007:11:31:37 -0400] cupsdFindBest: Location /admin/conf Limit 7f
d [02/Oct/2007:11:31:37 -0400] cupsdFindBest: Location /admin Limit 7f
d [02/Oct/2007:11:31:37 -0400] cupsdFindBest: Location / Limit 7f
d [02/Oct/2007:11:31:37 -0400] cupsdFindBest: best = /
d [02/Oct/2007:11:31:37 -0400] cupsdAuthorize: con->uri="/", con->best=0x8171bc0(/)
d [02/Oct/2007:11:31:37 -0400] cupsdAuthorize: Authorization=""
D [02/Oct/2007:11:31:37 -0400] cupsdAuthorize: No authentication data provided.
d [02/Oct/2007:11:31:37 -0400] cupsdIsAuthorized: con->uri="/", con->best=0x8171bc0(/)
d [02/Oct/2007:11:31:37 -0400] cupsdIsAuthorized: level=AUTH_ANON, type=AUTH_NONE, satisfy=AUTH_SATISFY_ALL, num_names=0
d [02/Oct/2007:11:31:37 -0400] cupsdIsAuthorized: auth=AUTH_DENY...
d [02/Oct/2007:11:31:37 -0400] cupsdReadClient: Unauthorized request for /...
D [02/Oct/2007:11:31:37 -0400] cupsdSendError: 8 code=403 (Forbidden)
D [02/Oct/2007:11:31:37 -0400] cupsdCloseClient: 8
d [02/Oct/2007:11:31:37 -0400] cupsdCloseClient: Removing fd 8 from InputSet and OutputSet...
d [02/Oct/2007:11:31:37 -0400] cupsdAcceptClient(lis=0x816d8b0) 3 Clients = 0
D [02/Oct/2007:11:31:37 -0400] cupsdAcceptClient: skipping getpeercon()
D [02/Oct/2007:11:31:37 -0400] cupsdAcceptClient: 8 from 192.168.0.59:631 (IPv4)
d [02/Oct/2007:11:31:37 -0400] cupsdAcceptClient: 8 connected to server on ebingo:631
d [02/Oct/2007:11:31:37 -0400] cupsdAcceptClient: Adding fd 8 to InputSet...
d [02/Oct/2007:11:31:37 -0400] cupsdReadClient: 8, used=0, file=-1 state=0
D [02/Oct/2007:11:31:37 -0400] cupsdReadClient: 8 GET /cups.css HTTP/1.1
D [02/Oct/2007:11:31:37 -0400] cupsdReadClient: 8 Browser asked for language "en-us.utf-8"...
d [02/Oct/2007:11:31:37 -0400] cupsdFindBest: uri = "/cups.css"...
d [02/Oct/2007:11:31:37 -0400] cupsdFindBest: Location CUPS_INTERNAL_BROWSE_ACL Limit 0
d [02/Oct/2007:11:31:37 -0400] cupsdFindBest: Location /admin/conf Limit 7f
d [02/Oct/2007:11:31:37 -0400] cupsdFindBest: Location /admin Limit 7f
d [02/Oct/2007:11:31:37 -0400] cupsdFindBest: Location / Limit 7f
d [02/Oct/2007:11:31:37 -0400] cupsdFindBest: best = /
d [02/Oct/2007:11:31:37 -0400] cupsdAuthorize: con->uri="/cups.css", con->best=0x8171bc0(/)
d [02/Oct/2007:11:31:37 -0400] cupsdAuthorize: Authorization=""
D [02/Oct/2007:11:31:37 -0400] cupsdAuthorize: No authentication data provided.
d [02/Oct/2007:11:31:37 -0400] cupsdIsAuthorized: con->uri="/cups.css", con->best=0x8171bc0(/)
d [02/Oct/2007:11:31:37 -0400] cupsdIsAuthorized: level=AUTH_ANON, type=AUTH_NONE, satisfy=AUTH_SATISFY_ALL, num_names=0
d [02/Oct/2007:11:31:37 -0400] cupsdIsAuthorized: auth=AUTH_DENY...
d [02/Oct/2007:11:31:37 -0400] cupsdReadClient: Unauthorized request for /cups.css...
D [02/Oct/2007:11:31:37 -0400] cupsdSendError: 8 code=403 (Forbidden)
D [02/Oct/2007:11:31:37 -0400] cupsdCloseClient: 8
d [02/Oct/2007:11:31:37 -0400] cupsdCloseClient: Removing fd 8 from InputSet and OutputSet...
d [02/Oct/2007:11:31:38 -0400] select_timeout: 86400 seconds to do nothing



Any thoughts?  Is this even ther right way to attack printing here?
Avatar of DanRaposo
DanRaposo
Flag of United States of America image

ASKER

I figured it out myself

I needed to add the following lines to the cups.conf file

<Location />
  Order Deny,Allow
  Deny From All
  Allow From 127.0.0.1
  Allow From 10.0.0.*
</Location>


Don't know how I missed that!!

but a useful link if anyone cares is
http://wiki.archlinux.org/index.php/CUPS_Setup#Introduction
ASKER CERTIFIED SOLUTION
Avatar of EE_AutoDeleter
EE_AutoDeleter

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account