Advertisement
Guest User

Cupsd.conf

a guest
Jul 30th, 2017
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 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. Port 631
  17. Listen /var/run/cups/cups.sock
  18.  
  19. # Show shared printers on the local network.
  20. Browsing Off
  21. BrowseLocalProtocols dnssd
  22.  
  23. # Default authentication type, when authentication is required...
  24. DefaultAuthType Basic
  25.  
  26. # Web interface setting...
  27. WebInterface Yes
  28.  
  29. # Restrict access to the server...
  30. <Location />
  31. Order allow,deny
  32. Allow 192.168.*
  33. </Location>
  34.  
  35. # Restrict access to the admin pages...
  36. <Location /admin>
  37. Order allow,deny
  38. Allow 192.168.*
  39. </Location>
  40.  
  41. # Restrict access to configuration files...
  42. <Location /admin/conf>
  43. AuthType Default
  44. Require user @SYSTEM
  45. Order allow,deny
  46. </Location>
  47.  
  48. # Restrict access to log files...
  49. <Location /admin/log>
  50. AuthType Default
  51. Require user @SYSTEM
  52. Order allow,deny
  53. Allow 192.168.*
  54. </Location>
  55.  
  56. # Set the default printer/job policies...
  57. <Policy default>
  58. # Job/subscription privacy...
  59. JobPrivateAccess default
  60. JobPrivateValues default
  61. SubscriptionPrivateAccess default
  62. SubscriptionPrivateValues default
  63.  
  64. # Job-related operations must be done by the owner or an administrator...
  65. <Limit Create-Job Print-Job Print-URI Validate-Job>
  66. Order deny,allow
  67. </Limit>
  68.  
  69. <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>
  70. Require user @OWNER @SYSTEM
  71. Order deny,allow
  72. </Limit>
  73.  
  74. # All administration operations require an administrator to authenticate...
  75. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  76. AuthType Default
  77. Require user @SYSTEM
  78. Order deny,allow
  79. </Limit>
  80.  
  81. # All printer operations require a printer operator to authenticate...
  82. <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>
  83. AuthType Default
  84. Require user @SYSTEM
  85. Order deny,allow
  86. </Limit>
  87.  
  88. # Only the owner or an administrator can cancel or authenticate a job...
  89. <Limit Cancel-Job CUPS-Authenticate-Job>
  90. Require user @OWNER @SYSTEM
  91. Order deny,allow
  92. </Limit>
  93.  
  94. <Limit All>
  95. Order deny,allow
  96. </Limit>
  97. </Policy>
  98.  
  99. # Set the authenticated printer/job policies...
  100. <Policy authenticated>
  101. # Job/subscription privacy...
  102. JobPrivateAccess default
  103. JobPrivateValues default
  104. SubscriptionPrivateAccess default
  105. SubscriptionPrivateValues default
  106.  
  107. # Job-related operations must be done by the owner or an administrator...
  108. <Limit Create-Job Print-Job Print-URI Validate-Job>
  109. AuthType Default
  110. Order deny,allow
  111. </Limit>
  112.  
  113. <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>
  114. AuthType Default
  115. Require user @OWNER @SYSTEM
  116. Order deny,allow
  117. </Limit>
  118.  
  119. # All administration operations require an administrator to authenticate...
  120. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  121. AuthType Default
  122. Require user @SYSTEM
  123. Order deny,allow
  124. </Limit>
  125.  
  126. # All printer operations require a printer operator to authenticate...
  127. <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>
  128. AuthType Default
  129. Require user @SYSTEM
  130. Order deny,allow
  131. </Limit>
  132.  
  133. # Only the owner or an administrator can cancel or authenticate a job...
  134. <Limit Cancel-Job CUPS-Authenticate-Job>
  135. AuthType Default
  136. Require user @OWNER @SYSTEM
  137. Order deny,allow
  138. </Limit>
  139.  
  140. <Limit All>
  141. Order deny,allow
  142. </Limit>
  143. </Policy>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement