Guest User

Untitled

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