Advertisement
Guest User

PrintServer

a guest
Apr 3rd, 2019
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.03 KB | None | 0 0
  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 localhost:631
  17. #Listen 192.168.102.52:631
  18. Listen /run/cups/cups.sock
  19. Listen kipishio-Print-Server:631 # Listen on all interfaces for the hostname 'kipishio-Print-Server'
  20.  
  21.  
  22. # Show shared printers on the local network.
  23. #Browsing Off
  24. BrowseLocalProtocols dnssd
  25.  
  26. # Default authentication type, when authentication is required...
  27. DefaultAuthType Basic
  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. </Location>
  50.  
  51. # Restrict access to log files...
  52. <Location /admin/log>
  53. AuthType Default
  54. Require user @SYSTEM
  55. Order allow,deny
  56. </Location>
  57.  
  58. # Set the default printer/job policies...
  59. <Policy default>
  60. # Job/subscription privacy...
  61. JobPrivateAccess default
  62. JobPrivateValues default
  63. SubscriptionPrivateAccess default
  64. SubscriptionPrivateValues default
  65.  
  66. # Job-related operations must be done by the owner or an administrator...
  67. <Limit Create-Job Print-Job Print-URI Validate-Job>
  68. Order deny,allow
  69. </Limit>
  70.  
  71. <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>
  72. Require user @OWNER @SYSTEM
  73. Order deny,allow
  74. </Limit>
  75.  
  76. # All administration operations require an administrator to authenticate...
  77. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  78. AuthType Default
  79. Require user @SYSTEM
  80. Order deny,allow
  81. </Limit>
  82.  
  83. # All printer operations require a printer operator to authenticate...
  84. <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>
  85. AuthType Default
  86. Require user @SYSTEM
  87. Order deny,allow
  88. </Limit>
  89.  
  90. # Only the owner or an administrator can cancel or authenticate a job...
  91. <Limit Cancel-Job CUPS-Authenticate-Job>
  92. Require user @OWNER @SYSTEM
  93. Order deny,allow
  94. </Limit>
  95.  
  96. <Limit All>
  97. Order deny,allow
  98. </Limit>
  99. </Policy>
  100.  
  101. # Set the authenticated printer/job policies...
  102. <Policy authenticated>
  103. # Job/subscription privacy...
  104. JobPrivateAccess default
  105. JobPrivateValues default
  106. SubscriptionPrivateAccess default
  107. SubscriptionPrivateValues default
  108.  
  109. # Job-related operations must be done by the owner or an administrator...
  110. <Limit Create-Job Print-Job Print-URI Validate-Job>
  111. AuthType Default
  112. Order deny,allow
  113. </Limit>
  114.  
  115. <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>
  116. AuthType Default
  117. Require user @OWNER @SYSTEM
  118. Order deny,allow
  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. AuthType Default
  124. Require user @SYSTEM
  125. Order deny,allow
  126. </Limit>
  127.  
  128. # All printer operations require a printer operator to authenticate...
  129. <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>
  130. AuthType Default
  131. Require user @SYSTEM
  132. Order deny,allow
  133. </Limit>
  134.  
  135. # Only the owner or an administrator can cancel or authenticate a job...
  136. <Limit Cancel-Job CUPS-Authenticate-Job>
  137. AuthType Default
  138. Require user @OWNER @SYSTEM
  139. Order deny,allow
  140. </Limit>
  141.  
  142. <Limit All>
  143. Order deny,allow
  144. </Limit>
  145. </Policy>
  146.  
  147. # Set the kerberized printer/job policies...
  148. <Policy kerberos>
  149. # Job/subscription privacy...
  150. JobPrivateAccess default
  151. JobPrivateValues default
  152. SubscriptionPrivateAccess default
  153. SubscriptionPrivateValues default
  154.  
  155. # Job-related operations must be done by the owner or an administrator...
  156. <Limit Create-Job Print-Job Print-URI Validate-Job>
  157. AuthType Negotiate
  158. Order deny,allow
  159. </Limit>
  160.  
  161. <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>
  162. AuthType Negotiate
  163. Require user @OWNER @SYSTEM
  164. Order deny,allow
  165. </Limit>
  166.  
  167. # All administration operations require an administrator to authenticate...
  168. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  169. AuthType Default
  170. Require user @SYSTEM
  171. Order deny,allow
  172. </Limit>
  173.  
  174. # All printer operations require a printer operator to authenticate...
  175. <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>
  176. AuthType Default
  177. Require user @SYSTEM
  178. Order deny,allow
  179. </Limit>
  180.  
  181. # Only the owner or an administrator can cancel or authenticate a job...
  182. <Limit Cancel-Job CUPS-Authenticate-Job>
  183. AuthType Negotiate
  184. Require user @OWNER @SYSTEM
  185. Order deny,allow
  186. </Limit>
  187.  
  188. <Limit All>
  189. Order deny,allow
  190. </Limit>
  191. </Policy>
  192.  
  193. ServerAdmin kipishio@gmail.com
  194. DefaultEncryption Never
  195. Browsing Yes
  196. #BrowseAllow all
  197. Listen 631
  198.  
  199.  
  200. #################################
  201. AccessLogLevel all
  202. AutoPurgeJobs No
  203. BrowseWebIF Yes
  204. Browsing Yes
  205. DefaultAuthType None
  206. DefaultEncryption Required
  207. DefaultLanguage locale
  208. DefaultPaperSize Auto
  209. #DefaultPolicy policy-name
  210. DefaultShared Yes
  211. DirtyCleanInterval 30
  212. #DNSSDHostNamehostname.example.com
  213. ErrorPolicy retry-job
  214. FilterLimit 200
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement