[cups.general] Printing from remote clients

Sam Leathers saml at astro.psu.edu
Tue Mar 13 10:41:24 PDT 2007


I haven't been able to test from a linux machine because there is a live 
cups server running on this machine on port 631, and I haven't figure 
out how to tell client.conf to use a nonstandard port when connecting, 
but anyways, that isn't the immediate problem.

I get the errors  below in my error_log when I try to print from a 
remote machine using lpr (machine happens to be mac os x). I'm assuming 
by the nature of the errors I have something wrong in cupsd.conf.

Thankyou,

Sam

error_log:

E [13/Mar/2007:13:26:57 -0400] encrypt_client: Unable to encrypt 
connection from shiner.astro.psu.edu!
D [13/Mar/2007:13:26:57 -0400] cupsdCloseClient: 9
D [13/Mar/2007:13:26:57 -0400] cupsdReadClient: 7 POST / HTTP/1.1
D [13/Mar/2007:13:26:57 -0400] cupsdAuthorize: No authentication data 
provided.
D [13/Mar/2007:13:26:57 -0400] CUPS-Get-Printers
D [13/Mar/2007:13:26:57 -0400] cupsdProcessIPPRequest: 7 status_code=0 
(successful-ok)
D [13/Mar/2007:13:27:02 -0400] cupsdReadClient: 7 POST / HTTP/1.1
D [13/Mar/2007:13:27:02 -0400] cupsdAuthorize: No authentication data 
provided.
D [13/Mar/2007:13:27:02 -0400] CUPS-Get-Printers
D [13/Mar/2007:13:27:02 -0400] cupsdProcessIPPRequest: 7 status_code=0 
(successful-ok)
D [13/Mar/2007:13:27:07 -0400] cupsdReadClient: 7 POST / HTTP/1.1
D [13/Mar/2007:13:27:07 -0400] cupsdAuthorize: No authentication data 
provided.
D [13/Mar/2007:13:27:07 -0400] CUPS-Get-Printers
D [13/Mar/2007:13:27:07 -0400] cupsdProcessIPPRequest: 7 status_code=0 
(successful-ok)
D [13/Mar/2007:13:27:12 -0400] cupsdReadClient: 7 POST / HTTP/1.1
D [13/Mar/2007:13:27:12 -0400] cupsdAuthorize: No authentication data 
provided.
D [13/Mar/2007:13:27:12 -0400] CUPS-Get-Printers
D [13/Mar/2007:13:27:12 -0400] cupsdProcessIPPRequest: 7 status_code=0 
(successful-ok)
D [13/Mar/2007:13:27:17 -0400] cupsdReadClient: 7 POST / HTTP/1.1
D [13/Mar/2007:13:27:17 -0400] cupsdAuthorize: No authentication data 
provided.
D [13/Mar/2007:13:27:17 -0400] CUPS-Get-Printers
D [13/Mar/2007:13:27:17 -0400] cupsdProcessIPPRequest: 7 status_code=0 
(successful-ok)
D [13/Mar/2007:13:27:22 -0400] cupsdReadClient: 7 POST / HTTP/1.1
D [13/Mar/2007:13:27:22 -0400] cupsdAuthorize: No authentication data 
provided.
D [13/Mar/2007:13:27:22 -0400] CUPS-Get-Printers
D [13/Mar/2007:13:27:22 -0400] cupsdProcessIPPRequest: 7 status_code=0 
(successful-ok)
D [13/Mar/2007:13:27:27 -0400] cupsdAcceptClient: 9 from 
shiner.astro.psu.edu:641 (IPv4)

cupsd.conf:

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel debug

# Administrator user group...
SystemGroup lpadmin sys root

# Only listen for connections from the local machine.
#Listen *:641
#SSLPort *:8000
#Listen /usr/local/cups/var/run/cups/cups.sock

Port 641
SSLPort 8000

AccessLog /usr/local/cups/var/log/cups/access_log
ErrorLog /usr/local/cups/var/log/cups/error_log
PageLog /usr/local/cups/var/log/cups/page_log

# Show shared printers on the local network.
Browsing on
BrowseOrder allow,deny
BrowseAllow from *

HostNameLookups On

RequestRoot /usr/local/cups/var/spool/cups

User cupsys
Group lp

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

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow localhost
  Allow *.astro.psu.edu
</Location>

<Location /printers>
  Order allow,deny
  Allow localhost
  Allow *.astro.psu.edu
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Encryption Required
  Order allow,deny
  Allow localhost
  Allow From 128.118.147.52
  Allow From 128.118.147.49
  Allow From 128.118.147.186
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
  Allow localhost
 Allow From 128.118.147.52
Allow From 128.118.147.49
Allow From 128.118.147.186
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an adminstrator...
  <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>

  # All administration operations require an adminstrator to authenticate...
  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes 
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-Add-Printer CUPS-Delete-Printer CUPS-Add-Class 
CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    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>

-- 
Sam Leathers
Astrophysics Department
520 Davey Lab
Penn State University





More information about the cups mailing list