| 1 |
# |
| 2 |
# Configuration file for the CUPS scheduler. See "man cupsd.conf" for a |
| 3 |
# complete description of this file. |
| 4 |
# |
| 5 |
|
| 6 |
# Log general information in error_log - change "warn" to "debug" |
| 7 |
# for troubleshooting... |
| 8 |
LogLevel warn |
| 9 |
PageLogFormat |
| 10 |
|
| 11 |
# Deactivate CUPS' internal logrotating, as we provide a better one, especially |
| 12 |
# LogLevel debug2 gets usable now |
| 13 |
MaxLogSize 0 |
| 14 |
|
| 15 |
# Only listen for connections from the local machine. |
| 16 |
Listen 0.0.0.0:631 |
| 17 |
Listen /run/cups/cups.sock |
| 18 |
|
| 19 |
# Show shared printers on the local network. |
| 20 |
Browsing On |
| 21 |
BrowseLocalProtocols dnssd |
| 22 |
|
| 23 |
# Local printers are not shared by default |
| 24 |
DefaultShared No |
| 25 |
|
| 26 |
# Default authentication type, when authentication is required... |
| 27 |
DefaultAuthType Basic |
| 28 |
|
| 29 |
# Web interface setting... |
| 30 |
WebInterface Yes |
| 31 |
|
| 32 |
# Default paper size depends on the printer |
| 33 |
DefaultPaperSize None |
| 34 |
|
| 35 |
# Restrict access to the server... |
| 36 |
<Location /> |
| 37 |
Order allow,deny |
| 38 |
Allow all |
| 39 |
</Location> |
| 40 |
|
| 41 |
# Restrict access to the admin pages... |
| 42 |
<Location /admin> |
| 43 |
Order allow,deny |
| 44 |
Allow all |
| 45 |
</Location> |
| 46 |
|
| 47 |
# Restrict access to configuration files... |
| 48 |
<Location /admin/conf> |
| 49 |
Order allow,deny |
| 50 |
Allow all |
| 51 |
</Location> |
| 52 |
|
| 53 |
# Restrict access to log files... |
| 54 |
<Location /admin/log> |
| 55 |
Order allow,deny |
| 56 |
Allow all |
| 57 |
</Location> |
| 58 |
|
| 59 |
# Set the default printer/job policies... |
| 60 |
<Policy default> |
| 61 |
# Job/subscription privacy... |
| 62 |
JobPrivateAccess default |
| 63 |
JobPrivateValues default |
| 64 |
SubscriptionPrivateAccess default |
| 65 |
SubscriptionPrivateValues default |
| 66 |
|
| 67 |
# Job-related operations must be done by the owner or an administrator... |
| 68 |
<Limit Create-Job Print-Job Print-URI Validate-Job> |
| 69 |
Order allow,deny |
| 70 |
Allow all |
| 71 |
</Limit> |
| 72 |
|
| 73 |
<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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document> |
| 74 |
Order allow,deny |
| 75 |
Allow all |
| 76 |
</Limit> |
| 77 |
|
| 78 |
# All administration operations require an administrator to authenticate... |
| 79 |
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices> |
| 80 |
Order allow,deny |
| 81 |
Allow all |
| 82 |
</Limit> |
| 83 |
|
| 84 |
# All printer operations require a printer operator to authenticate... |
| 85 |
<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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs> |
| 86 |
Order allow,deny |
| 87 |
Allow all |
| 88 |
</Limit> |
| 89 |
|
| 90 |
# Only the owner or an administrator can cancel or authenticate a job... |
| 91 |
<Limit Cancel-Job CUPS-Authenticate-Job> |
| 92 |
Order allow,deny |
| 93 |
Allow all |
| 94 |
</Limit> |
| 95 |
|
| 96 |
<Limit All> |
| 97 |
Order allow,deny |
| 98 |
Allow all |
| 99 |
</Limit> |
| 100 |
</Policy> |
| 101 |
|
| 102 |
# Set the authenticated printer/job policies... |
| 103 |
<Policy authenticated> |
| 104 |
# Job/subscription privacy... |
| 105 |
JobPrivateAccess default |
| 106 |
JobPrivateValues default |
| 107 |
SubscriptionPrivateAccess default |
| 108 |
SubscriptionPrivateValues default |
| 109 |
|
| 110 |
# Job-related operations must be done by the owner or an administrator... |
| 111 |
<Limit Create-Job Print-Job Print-URI Validate-Job> |
| 112 |
Order allow,deny |
| 113 |
Allow all |
| 114 |
</Limit> |
| 115 |
|
| 116 |
<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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document> |
| 117 |
Order allow,deny |
| 118 |
Allow all |
| 119 |
</Limit> |
| 120 |
|
| 121 |
# All administration operations require an administrator to authenticate... |
| 122 |
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default> |
| 123 |
Order allow,deny |
| 124 |
Allow all |
| 125 |
</Limit> |
| 126 |
|
| 127 |
# All printer operations require a printer operator to authenticate... |
| 128 |
<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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs> |
| 129 |
Order allow,deny |
| 130 |
Allow all |
| 131 |
</Limit> |
| 132 |
|
| 133 |
# Only the owner or an administrator can cancel or authenticate a job... |
| 134 |
<Limit Cancel-Job CUPS-Authenticate-Job> |
| 135 |
Order allow,deny |
| 136 |
Allow all |
| 137 |
</Limit> |
| 138 |
|
| 139 |
<Limit All> |
| 140 |
Order allow,deny |
| 141 |
Allow all |
| 142 |
</Limit> |
| 143 |
</Policy> |
| 144 |
|
| 145 |
# Set the kerberized printer/job policies... |
| 146 |
<Policy kerberos> |
| 147 |
# Job/subscription privacy... |
| 148 |
JobPrivateAccess default |
| 149 |
JobPrivateValues default |
| 150 |
SubscriptionPrivateAccess default |
| 151 |
SubscriptionPrivateValues default |
| 152 |
|
| 153 |
# Job-related operations must be done by the owner or an administrator... |
| 154 |
<Limit Create-Job Print-Job Print-URI Validate-Job> |
| 155 |
Order allow,deny |
| 156 |
Allow all |
| 157 |
</Limit> |
| 158 |
|
| 159 |
<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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document> |
| 160 |
Order allow,deny |
| 161 |
Allow all |
| 162 |
</Limit> |
| 163 |
|
| 164 |
# All administration operations require an administrator to authenticate... |
| 165 |
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default> |
| 166 |
Order allow,deny |
| 167 |
Allow all |
| 168 |
</Limit> |
| 169 |
|
| 170 |
# All printer operations require a printer operator to authenticate... |
| 171 |
<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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs> |
| 172 |
Order allow,deny |
| 173 |
Allow all |
| 174 |
</Limit> |
| 175 |
|
| 176 |
# Only the owner or an administrator can cancel or authenticate a job... |
| 177 |
<Limit Cancel-Job CUPS-Authenticate-Job> |
| 178 |
Order allow,deny |
| 179 |
Allow all |
| 180 |
</Limit> |
| 181 |
|
| 182 |
<Limit All> |
| 183 |
Order allow,deny |
| 184 |
Allow all |
| 185 |
</Limit> |
| 186 |
</Policy> |