Network printer administration

Nuzhna Pomoshch nuzhna_pomoshch at yahoo.com
Tue Mar 1 23:31:15 PST 2011


I am trying to get started with cups, but it remains a complete mystery for me.

I have a printer I have on a machine I will call server, and I am trying to access it from a machine I will call client. I am using cups 1.3.11.

My cupsd.conf file:

LogLevel debug

SystemGroup lpadmin

Listen localhost:631
Listen /var/run/cups/cups.sock
Listen server:631

Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @IF(eth0)

DefaultAuthType Basic

HostNameLookups Double

<Location />
  Order allow,deny
  Allow from @IF(eth0)
</Location>

<Location /admin>
  Encryption Required
  Order allow,deny
  Allow from client
</Location>

<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

<Policy default>
  <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>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <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>

  <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>

  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

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


First, if I go to https://server:631/ and click on something like "Manage Printers", the error log (/var/log/cups/error_log) fills up with (and I mean fills up - about 10000 lines per second) with:

W [01/Mar/2011:08:40:58 +0000] IP lookup failed - connection from localhost closed!

I can't really see why it can't find the address for localhost. :)

So I try https://localhost:631/ from the client. I see "printer at server" there, but when I click on any administrative task, I get "403 forbidden," and the log file on the server shows:

D [01/Mar/2011:08:47:44 +0000] cupsdAcceptClient: 12 from client:631 (IPv4)
D [01/Mar/2011:08:47:44 +0000] encrypt_client: 12 Connection from client now encrypted.
D [01/Mar/2011:08:47:44 +0000] cupsdReadClient: 12 GET /admin/?op=set-printer-options&printer_name=printer%40server HTTP/1.1
D [01/Mar/2011:08:47:44 +0000] cupsdAuthorize: No authentication data provided.
D [01/Mar/2011:08:47:44 +0000] cupsdSendError: 12 code=403 (Forbidden)
D [01/Mar/2011:08:47:44 +0000] cupsdCloseClient: 12
D [01/Mar/2011:08:47:44 +0000] cupsdCloseClient: 12

I obviously have something misconfigured. Can someone enlighten me as to what?




More information about the cups mailing list