spacepaste

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