|  | @@ -0,0 +1,142 @@
 | 
		
	
		
			
			|  | 1 | +#
 | 
		
	
		
			
			|  | 2 | +#
 | 
		
	
		
			
			|  | 3 | +# Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
 | 
		
	
		
			
			|  | 4 | +# complete description of this file.
 | 
		
	
		
			
			|  | 5 | +#
 | 
		
	
		
			
			|  | 6 | +
 | 
		
	
		
			
			|  | 7 | +ServerAlias *
 | 
		
	
		
			
			|  | 8 | +
 | 
		
	
		
			
			|  | 9 | +# Log general information in error_log - change "warn" to "debug"
 | 
		
	
		
			
			|  | 10 | +# for troubleshooting...
 | 
		
	
		
			
			|  | 11 | +LogLevel warn
 | 
		
	
		
			
			|  | 12 | +
 | 
		
	
		
			
			|  | 13 | +# Deactivate CUPS' internal logrotating, as we provide a better one, especially
 | 
		
	
		
			
			|  | 14 | +# LogLevel debug2 gets usable now
 | 
		
	
		
			
			|  | 15 | +MaxLogSize 0
 | 
		
	
		
			
			|  | 16 | +
 | 
		
	
		
			
			|  | 17 | +# Listen to all
 | 
		
	
		
			
			|  | 18 | +Port 631
 | 
		
	
		
			
			|  | 19 | +Listen /var/run/cups/cups.sock
 | 
		
	
		
			
			|  | 20 | +
 | 
		
	
		
			
			|  | 21 | +# Show shared printers on the local network.
 | 
		
	
		
			
			|  | 22 | +Browsing On
 | 
		
	
		
			
			|  | 23 | +BrowseLocalProtocols dnssd
 | 
		
	
		
			
			|  | 24 | +
 | 
		
	
		
			
			|  | 25 | +# Default authentication type, when authentication is required...
 | 
		
	
		
			
			|  | 26 | +DefaultAuthType Basic
 | 
		
	
		
			
			|  | 27 | +DefaultEncryption IfRequested
 | 
		
	
		
			
			|  | 28 | +
 | 
		
	
		
			
			|  | 29 | +# Web interface setting...
 | 
		
	
		
			
			|  | 30 | +WebInterface Yes
 | 
		
	
		
			
			|  | 31 | +
 | 
		
	
		
			
			|  | 32 | +# Restrict access to the server...
 | 
		
	
		
			
			|  | 33 | +<Location />
 | 
		
	
		
			
			|  | 34 | +  Order allow,deny
 | 
		
	
		
			
			|  | 35 | +  Allow all
 | 
		
	
		
			
			|  | 36 | +</Location>
 | 
		
	
		
			
			|  | 37 | +
 | 
		
	
		
			
			|  | 38 | +# Restrict access to the admin pages...
 | 
		
	
		
			
			|  | 39 | +<Location /admin>
 | 
		
	
		
			
			|  | 40 | +  Order allow,deny
 | 
		
	
		
			
			|  | 41 | +  Allow all
 | 
		
	
		
			
			|  | 42 | +</Location>
 | 
		
	
		
			
			|  | 43 | +
 | 
		
	
		
			
			|  | 44 | +# Restrict access to configuration files...
 | 
		
	
		
			
			|  | 45 | +<Location /admin/conf>
 | 
		
	
		
			
			|  | 46 | +  AuthType Default
 | 
		
	
		
			
			|  | 47 | +  Require user @SYSTEM
 | 
		
	
		
			
			|  | 48 | +  Order allow,deny
 | 
		
	
		
			
			|  | 49 | +  Allow all
 | 
		
	
		
			
			|  | 50 | +</Location>
 | 
		
	
		
			
			|  | 51 | +
 | 
		
	
		
			
			|  | 52 | +# Set the default printer/job policies...
 | 
		
	
		
			
			|  | 53 | +<Policy default>
 | 
		
	
		
			
			|  | 54 | +  # Job/subscription privacy...
 | 
		
	
		
			
			|  | 55 | +  JobPrivateAccess default
 | 
		
	
		
			
			|  | 56 | +  JobPrivateValues default
 | 
		
	
		
			
			|  | 57 | +  SubscriptionPrivateAccess default
 | 
		
	
		
			
			|  | 58 | +  SubscriptionPrivateValues default
 | 
		
	
		
			
			|  | 59 | +
 | 
		
	
		
			
			|  | 60 | +  # Job-related operations must be done by the owner or an administrator...
 | 
		
	
		
			
			|  | 61 | +  <Limit Create-Job Print-Job Print-URI Validate-Job>
 | 
		
	
		
			
			|  | 62 | +    Order deny,allow
 | 
		
	
		
			
			|  | 63 | +  </Limit>
 | 
		
	
		
			
			|  | 64 | +
 | 
		
	
		
			
			|  | 65 | +  <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>
 | 
		
	
		
			
			|  | 66 | +    Require user @OWNER @SYSTEM
 | 
		
	
		
			
			|  | 67 | +    Order deny,allow
 | 
		
	
		
			
			|  | 68 | +  </Limit>
 | 
		
	
		
			
			|  | 69 | +
 | 
		
	
		
			
			|  | 70 | +  # All administration operations require an administrator to authenticate...
 | 
		
	
		
			
			|  | 71 | +  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
 | 
		
	
		
			
			|  | 72 | +    AuthType Default
 | 
		
	
		
			
			|  | 73 | +    Require user @SYSTEM
 | 
		
	
		
			
			|  | 74 | +    Order deny,allow
 | 
		
	
		
			
			|  | 75 | +  </Limit>
 | 
		
	
		
			
			|  | 76 | +
 | 
		
	
		
			
			|  | 77 | +  # All printer operations require a printer operator to authenticate...
 | 
		
	
		
			
			|  | 78 | +  <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>
 | 
		
	
		
			
			|  | 79 | +    AuthType Default
 | 
		
	
		
			
			|  | 80 | +    Require user @SYSTEM
 | 
		
	
		
			
			|  | 81 | +    Order deny,allow
 | 
		
	
		
			
			|  | 82 | +  </Limit>
 | 
		
	
		
			
			|  | 83 | +
 | 
		
	
		
			
			|  | 84 | +  # Only the owner or an administrator can cancel or authenticate a job...
 | 
		
	
		
			
			|  | 85 | +  <Limit Cancel-Job CUPS-Authenticate-Job>
 | 
		
	
		
			
			|  | 86 | +    Require user @OWNER @SYSTEM
 | 
		
	
		
			
			|  | 87 | +    Order deny,allow
 | 
		
	
		
			
			|  | 88 | +  </Limit>
 | 
		
	
		
			
			|  | 89 | +
 | 
		
	
		
			
			|  | 90 | +  <Limit All>
 | 
		
	
		
			
			|  | 91 | +    Order deny,allow
 | 
		
	
		
			
			|  | 92 | +  </Limit>
 | 
		
	
		
			
			|  | 93 | +</Policy>
 | 
		
	
		
			
			|  | 94 | +
 | 
		
	
		
			
			|  | 95 | +# Set the authenticated printer/job policies...
 | 
		
	
		
			
			|  | 96 | +<Policy authenticated>
 | 
		
	
		
			
			|  | 97 | +  # Job/subscription privacy...
 | 
		
	
		
			
			|  | 98 | +  JobPrivateAccess default
 | 
		
	
		
			
			|  | 99 | +  JobPrivateValues default
 | 
		
	
		
			
			|  | 100 | +  SubscriptionPrivateAccess default
 | 
		
	
		
			
			|  | 101 | +  SubscriptionPrivateValues default
 | 
		
	
		
			
			|  | 102 | +
 | 
		
	
		
			
			|  | 103 | +  # Job-related operations must be done by the owner or an administrator...
 | 
		
	
		
			
			|  | 104 | +  <Limit Create-Job Print-Job Print-URI Validate-Job>
 | 
		
	
		
			
			|  | 105 | +    AuthType Default
 | 
		
	
		
			
			|  | 106 | +    Order deny,allow
 | 
		
	
		
			
			|  | 107 | +  </Limit>
 | 
		
	
		
			
			|  | 108 | +
 | 
		
	
		
			
			|  | 109 | +  <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>
 | 
		
	
		
			
			|  | 110 | +    AuthType Default
 | 
		
	
		
			
			|  | 111 | +    Require user @OWNER @SYSTEM
 | 
		
	
		
			
			|  | 112 | +    Order deny,allow
 | 
		
	
		
			
			|  | 113 | +  </Limit>
 | 
		
	
		
			
			|  | 114 | +
 | 
		
	
		
			
			|  | 115 | +  # All administration operations require an administrator to authenticate...
 | 
		
	
		
			
			|  | 116 | +  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
 | 
		
	
		
			
			|  | 117 | +    AuthType Default
 | 
		
	
		
			
			|  | 118 | +    Require user @SYSTEM
 | 
		
	
		
			
			|  | 119 | +    Order deny,allow
 | 
		
	
		
			
			|  | 120 | +  </Limit>
 | 
		
	
		
			
			|  | 121 | +
 | 
		
	
		
			
			|  | 122 | +  # All printer operations require a printer operator to authenticate...
 | 
		
	
		
			
			|  | 123 | +  <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>
 | 
		
	
		
			
			|  | 124 | +    AuthType Default
 | 
		
	
		
			
			|  | 125 | +    Require user @SYSTEM
 | 
		
	
		
			
			|  | 126 | +    Order deny,allow
 | 
		
	
		
			
			|  | 127 | +  </Limit>
 | 
		
	
		
			
			|  | 128 | +
 | 
		
	
		
			
			|  | 129 | +  # Only the owner or an administrator can cancel or authenticate a job...
 | 
		
	
		
			
			|  | 130 | +  <Limit Cancel-Job CUPS-Authenticate-Job>
 | 
		
	
		
			
			|  | 131 | +    AuthType Default
 | 
		
	
		
			
			|  | 132 | +    Require user @OWNER @SYSTEM
 | 
		
	
		
			
			|  | 133 | +    Order deny,allow
 | 
		
	
		
			
			|  | 134 | +  </Limit>
 | 
		
	
		
			
			|  | 135 | +
 | 
		
	
		
			
			|  | 136 | +  <Limit All>
 | 
		
	
		
			
			|  | 137 | +    Order deny,allow
 | 
		
	
		
			
			|  | 138 | +  </Limit>
 | 
		
	
		
			
			|  | 139 | +</Policy>
 | 
		
	
		
			
			|  | 140 | +
 | 
		
	
		
			
			|  | 141 | +#
 | 
		
	
		
			
			|  | 142 | +#
 |