Guest User

Untitled

a guest
Jun 9th, 2012
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.82 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. # Log general information in error_log - change "warn" to "debug"
  9. # for troubleshooting...
  10. LogLevel warn
  11.  
  12. # Administrator user group...
  13. SystemGroup sys root
  14.  
  15.  
  16. # Only listen for connections from the local machine.
  17. Listen localhost:631
  18. Listen /var/run/cups/cups.sock
  19.  
  20. # Show shared printers on the local network.
  21. Browsing On
  22. BrowseLocalProtocols CUPS
  23. BrowseAllow all
  24. BrowseOrder allow,deny
  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 127.0.0.2
  36. </Location>
  37.  
  38. # Restrict access to the admin pages...
  39. <Location /admin>
  40. Order allow,deny
  41. </Location>
  42.  
  43. # Restrict access to configuration files...
  44. <Location /admin/conf>
  45. AuthType Default
  46. Require user @SYSTEM
  47. Order allow,deny
  48. </Location>
  49.  
  50. # Set the default printer/job policies...
  51. <Policy default>
  52. # Job/subscription privacy...
  53. JobPrivateAccess default
  54. JobPrivateValues default
  55. SubscriptionPrivateAccess default
  56. SubscriptionPrivateValues default
  57.  
  58. # Job-related operations must be done by the owner or an administrator...
  59. <Limit Create-Job Print-Job Print-URI Validate-Job>
  60. Order deny,allow
  61. </Limit>
  62.  
  63. <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>
  64. Require user @OWNER @SYSTEM
  65. Order deny,allow
  66. </Limit>
  67.  
  68. # All administration operations require an administrator to authenticate...
  69. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  70. AuthType Default
  71. Require user @SYSTEM
  72. Order deny,allow
  73. </Limit>
  74.  
  75. # All printer operations require a printer operator to authenticate...
  76. <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>
  77. AuthType Default
  78. Require user @SYSTEM
  79. Order deny,allow
  80. </Limit>
  81.  
  82. # Only the owner or an administrator can cancel or authenticate a job...
  83. <Limit Cancel-Job CUPS-Authenticate-Job>
  84. Require user @OWNER @SYSTEM
  85. Order deny,allow
  86. </Limit>
  87.  
  88. <Limit All>
  89. Order deny,allow
  90. </Limit>
  91. </Policy>
  92.  
  93. # Set the authenticated printer/job policies...
  94. <Policy authenticated>
  95. # Job/subscription privacy...
  96. JobPrivateAccess default
  97. JobPrivateValues default
  98. SubscriptionPrivateAccess default
  99. SubscriptionPrivateValues default
  100.  
  101. # Job-related operations must be done by the owner or an administrator...
  102. <Limit Create-Job Print-Job Print-URI Validate-Job>
  103. AuthType Default
  104. Order deny,allow
  105. </Limit>
  106.  
  107. <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>
  108. AuthType Default
  109. Require user @OWNER @SYSTEM
  110. Order deny,allow
  111. </Limit>
  112.  
  113. # All administration operations require an administrator to authenticate...
  114. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  115. AuthType Default
  116. Require user @SYSTEM
  117. Order deny,allow
  118. </Limit>
  119.  
  120. # All printer operations require a printer operator to authenticate...
  121. <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>
  122. AuthType Default
  123. Require user @SYSTEM
  124. Order deny,allow
  125. </Limit>
  126.  
  127. # Only the owner or an administrator can cancel or authenticate a job...
  128. <Limit Cancel-Job CUPS-Authenticate-Job>
  129. AuthType Default
  130. Require user @OWNER @SYSTEM
  131. Order deny,allow
  132. </Limit>
  133.  
  134. <Limit All>
  135. Order deny,allow
  136. </Limit>
  137. </Policy>
  138.  
  139. #
  140. # End of "$Id: cupsd.conf.in 9407 2010-12-09 21:24:51Z mike $".
  141. #
  142.  
  143. # The policy below is added by SUSE during build of our cups package.
  144. # The policy 'allowallforanybody' is totally open and insecure and therefore
  145. # it can only be used within an internal network where only trused users exist
  146. # and where the cupsd is not accessible at all from any external host, see
  147. # http://en.opensuse.org/SDB:CUPS_and_SANE_Firewall_settings
  148. # Have in mind that any user who is allowed to do printer admin tasks
  149. # can change the print queues as he likes - e.g. send copies of confidental
  150. # print jobs from an internal network to any external destination, see
  151. # http://en.opensuse.org/SDB:CUPS_in_a_Nutshell
  152. # For documentation regarding 'Managing Operation Policies' see
  153. # http://www.cups.org/documentation.php/doc-1.5/policies.html
  154. <Policy allowallforanybody>
  155. <Limit All>
  156. Order deny,allow
  157. Allow from all
  158. </Limit>
  159. </Policy>
  160. # Explicitly set the CUPS 'default' policy to be used by default:
  161. DefaultPolicy default
  162. # End of additions by SUSE.
  163.  
  164. # 2012-06-09,14:17:31 modify_cupsd_conf Browsing On
  165. # 2012-06-09,14:17:31 modify_cupsd_conf BrowseAllow @LOCAL
  166. # 2012-06-09,14:51:37 modify_cupsd_conf Browsing On
  167. # 2012-06-09,14:51:37 modify_cupsd_conf BrowseAllow all
Advertisement
Add Comment
Please, Sign In to add comment