Advertisement
Guest User

Untitled

a guest
Feb 10th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.00 KB | None | 0 0
  1. #
  2. # "$Id: cupsd.conf.in 9407 2010-12-09 21:24:51Z mike $"
  3. #
  4. # Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
  5. # complete description of this file.
  6. #
  7.  
  8. User lp
  9. Group lp
  10. # Log general information in error_log - change "warn" to "debug"
  11. # for troubleshooting...
  12. LogLevel error
  13. ErrorLog /var/log/daemon/cups/error.log
  14. AccessLog /var/log/daemon/cups/access.log
  15. PageLog /var/log/daemon/cups/page.log
  16.  
  17. # Administrator user group...
  18. SystemGroup sys root
  19.  
  20. # Only listen for connections from the local machine.
  21. Listen 127.0.0.1:631
  22. Listen 192.168.0.10:631
  23. Listen /var/run/cups/cups.sock
  24.  
  25. # Optimization
  26. PreserveJobFiles Off
  27. PreserveJobHistory Off
  28.  
  29. # Show shared printers on the local network.
  30. Browsing On
  31. BrowseOrder allow,deny
  32. BrowseAllow all
  33. BrowseProtocols cups
  34. BrowsePort 631
  35.  
  36. # Web interface setting...
  37. WebInterface Yes
  38.  
  39. # Default authentication type, when authentication is required...
  40. DefaultAuthType BasicDigest
  41.  
  42. # Restrict access to the server...
  43. <Location />
  44. Allow 192.168.0.0/24
  45. Order allow,deny
  46. </Location>
  47.  
  48. # Restrict access to the admin pages...
  49. <Location /admin>
  50. Encryption Required
  51. AuthType Default
  52. Require group admin
  53. Allow 127.0.0.1
  54. Order allow,deny
  55. </Location>
  56.  
  57. # Restrict access to configuration files...
  58. <Location /admin/conf>
  59. Encryption Required
  60. AuthType Default
  61. Require group admin
  62. Allow 127.0.0.1
  63. Order allow,deny
  64. </Location>
  65.  
  66. # Set the default printer/job policies...
  67. <Policy default>
  68. # Job/subscription privacy...
  69. JobPrivateAccess default
  70. JobPrivateValues default
  71. SubscriptionPrivateAccess default
  72. SubscriptionPrivateValues default
  73.  
  74. # Job-related operations must be done by the owner or an administrator...
  75. <Limit Create-Job Print-Job Print-URI Validate-Job>
  76. Order deny,allow
  77. </Limit>
  78.  
  79. <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>
  80. Require user @OWNER @SYSTEM
  81. Order deny,allow
  82. </Limit>
  83.  
  84. # All administration operations require an administrator to authenticate...
  85. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  86. AuthType Default
  87. Require group admin
  88. Order deny,allow
  89. </Limit>
  90.  
  91. # All printer operations require a printer operator to authenticate...
  92. <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>
  93. AuthType Default
  94. Require user @SYSTEM
  95. Order deny,allow
  96. </Limit>
  97.  
  98. # Only the owner or an administrator can cancel or authenticate a job...
  99. <Limit Cancel-Job CUPS-Authenticate-Job>
  100. Require user @OWNER @SYSTEM
  101. Order deny,allow
  102. </Limit>
  103.  
  104. <Limit All>
  105. Order deny,allow
  106. </Limit>
  107. </Policy>
  108.  
  109. # Set the authenticated printer/job policies...
  110. <Policy authenticated>
  111. # Job/subscription privacy...
  112. JobPrivateAccess default
  113. JobPrivateValues default
  114. SubscriptionPrivateAccess default
  115. SubscriptionPrivateValues default
  116.  
  117. # Job-related operations must be done by the owner or an administrator...
  118. <Limit Create-Job Print-Job Print-URI Validate-Job>
  119. AuthType Default
  120. Order deny,allow
  121. </Limit>
  122.  
  123. <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>
  124. AuthType Default
  125. Require user @OWNER @SYSTEM
  126. Order deny,allow
  127. </Limit>
  128.  
  129. # All administration operations require an administrator to authenticate...
  130. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  131. AuthType Default
  132. Require user @SYSTEM
  133. Order deny,allow
  134. </Limit>
  135.  
  136. # All printer operations require a printer operator to authenticate...
  137. <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>
  138. AuthType Default
  139. Require user @SYSTEM
  140. Order deny,allow
  141. </Limit>
  142.  
  143. # Only the owner or an administrator can cancel or authenticate a job...
  144. <Limit Cancel-Job CUPS-Authenticate-Job>
  145. AuthType Default
  146. Require user @OWNER @SYSTEM
  147. Order deny,allow
  148. </Limit>
  149.  
  150. <Limit All>
  151. Order deny,allow
  152. </Limit>
  153. </Policy>
  154.  
  155. #
  156. # End of "$Id: cupsd.conf.in 9407 2010-12-09 21:24:51Z mike $".
  157. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement