[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How can I use CUPS with my Netowrk Printer

Posted on 2007-10-02
2
Medium Priority
?
1,554 Views
Last Modified: 2013-12-16
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?
0
Comment
Question by:DanRaposo
2 Comments
 

Author Comment

by:DanRaposo
ID: 20000126
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
0
 

Accepted Solution

by:
EE_AutoDeleter earned 0 total points
ID: 20968561
DanRaposo,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

EE_AutoDeleter
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month18 days, 16 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question