LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-09-2012, 10:24 AM   #1
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Rep: Reputation: 30
CUPS: Printer not printing


Hi all,

I'm running Ubuntu 10.04LTS and CUPS 1.4.3 on my little server. I have one printer attached to the server, a Samsung CLP-310. I installed it as a raw queue on my server, and installed the driver on my two Windows computers. I then pointed my computers to a network printer located at http://<ip-address>/printers/clp310. Windows sees the printers, says it is online, but I cannot print. If I send a print job, nothing happens: the lights on the printer don't flash, it doesn't come up as a job on the CUPS web interface...nothing, the job does evaporates.

I'm posting my cupsd.conf and error.log in hopes that someone smarter than I am can figure out what is happening. Thanks in advance!

error.log:
Code:
E [09/Apr/2012:11:05:59 -0400] Returning IPP client-error-not-authorized for Print-Job (http://<redacted>/printers/clp310) from 192.168.0.1
E [09/Apr/2012:11:09:52 -0400] [cups-driverd] Bad driver information file "/usr/share/cups/drv/sample.drv"!
E [09/Apr/2012:11:11:17 -0400] Returning IPP client-error-not-authorized for Print-Job (http://<redacted>/printers/clp310) from 192.168.0.1
cupsd.conf
Code:
# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn

# Deactivate CUPS' internal logrotating, as we provide a better one, especially
# LogLevel debug2 gets usable now
MaxLogSize 0

# Administrator user group...
SystemGroup lpadmin

ServerAlias *

# Only listen for connections from the local machine.
#Port 631
Listen localhost:631
Listen 192.168.0.12:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing Off
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS dnssd
BrowseAddress @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow All
 # Allow From All
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow All
  #Allow From All
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI>
    AuthType Default
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-09-2012, 04:32 PM   #2
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 36
Hi,

From the line "Bad driver information file "/usr/share/cups/drv/sample.drv"!", I am guessing you may have accidentally selected a sample driver in your printer configuration instead of the correct driver for your printer. You should be able to edit the printer configuration via the CUPS web interface at http://localhost:631/ from your server. Make sure to select the driver for the Samsung CLP-310.
 
2 members found this post helpful.
Old 04-09-2012, 06:43 PM   #3
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Original Poster
Rep: Reputation: 30
OK, I re-added the printer, checked off 'share this printer' and it started working. Thanks!
 
Old 08-18-2018, 09:36 AM   #4
tmst
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Rep: Reputation: 0
Quote:
Originally Posted by evilmonkey View Post
OK, I re-added the printer, checked off 'share this printer' and it started working. Thanks!
I'm guessing that just changing something caused the configuration file to be rewritten solving the problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Printing to a CUPS printer from Windows 7 rkfb Slackware 6 01-31-2018 09:39 AM
cups to cups printing through network on usb printer checkmate3001 Linux - Server 2 02-16-2009 12:12 PM
Printing on Winxp Printer via cups gotmonkey Slackware 10 11-30-2004 01:38 PM
help cups printing to network printer sledgexiv Linux - Newbie 0 09-23-2003 06:39 PM
Samba printing to CUPS printer kris.kj.jacobs Linux - Networking 1 11-02-2001 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration