cupsd.conf

[~] sudo cat /etc/cups/cupsd.conf
#
# 25-10-09: update for works to cups 1.4.1-1
#           (remember to blacklist usblp module)
#
LogLevel info
SystemGroup printadmin root sys admin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS
DefaultAuthType Basic
DefaultEncryption Never
<Location />
 # Allow shared printing and remote administration...
 Order allow,deny
 Allow @LOCAL
</Location>
<Location /admin>
 # Allow remote administration...
 Order allow,deny
 Allow @LOCAL
</Location>
<Location /admin/conf>
 AuthType None
 # Allow remote access to the configuration files...
 Order allow,deny
 Allow @LOCAL
</Location>
<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>
 Require user @OWNER @SYSTEM
 Order deny,allow
 </Limit>
 # All administration operations require an administrator 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 CUPS-Add-Device CUPS-Delete-Device>
 AuthType Default
 Require user @SYSTEM
 Order deny,allow
</Limit>
 # Only the owner or an administrator can cancel a job...
 <Limit Cancel-Job>
 Order deny,allow
 Require user @OWNER @SYSTEM
 </Limit>
 <Limit All>
 Order deny,allow
 </Limit>
</Policy>

One Response to “cupsd.conf”

  1. tohpati tech Says:

    nice informations and thanks for sharing. very appreciate


Leave a Reply