Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. #
  2. #
  3. # Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
  4. # complete description of this file.
  5. #
  6.  
  7. # Log general information in error_log - change "warn" to "debug"
  8. # for troubleshooting...
  9. # LogLevel warn
  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. Listen localhost:631
  17. Listen /var/run/cups/cups.sock
  18.  
  19. # Show shared printers on the local network.
  20. Browsing On
  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. </Location>
  33.  
  34. # Restrict access to the admin pages...
  35. <Location /admin>
  36. Order allow,deny
  37. </Location>
  38.  
  39. # Restrict access to configuration files...
  40. <Location /admin/conf>
  41. AuthType Default
  42. Require user @SYSTEM
  43. Order allow,deny
  44. </Location>
  45.  
  46. # Set the default printer/job policies...
  47. <Policy default>
  48. # Job/subscription privacy...
  49. JobPrivateAccess default
  50. JobPrivateValues default
  51. SubscriptionPrivateAccess default
  52. SubscriptionPrivateValues default
  53.  
  54. # Job-related operations must be done by the owner or an administrator...
  55. <Limit Create-Job Print-Job Print-URI Validate-Job>
  56. Order deny,allow
  57. </Limit>
  58.  
  59. <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>
  60. Require user @OWNER @SYSTEM
  61. Order deny,allow
  62. </Limit>
  63.  
  64. # All administration operations require an administrator to authenticate...
  65. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  66. AuthType Default
  67. Require user @SYSTEM
  68. Order deny,allow
  69. </Limit>
  70.  
  71. # All printer operations require a printer operator to authenticate...
  72. <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>
  73. AuthType Default
  74. Require user @SYSTEM
  75. Order deny,allow
  76. </Limit>
  77.  
  78. # Only the owner or an administrator can cancel or authenticate a job...
  79. <Limit Cancel-Job CUPS-Authenticate-Job>
  80. Require user @OWNER @SYSTEM
  81. Order deny,allow
  82. </Limit>
  83.  
  84. <Limit All>
  85. Order deny,allow
  86. </Limit>
  87. </Policy>
  88.  
  89. # Set the authenticated printer/job policies...
  90. <Policy authenticated>
  91. # Job/subscription privacy...
  92. JobPrivateAccess default
  93. JobPrivateValues default
  94. SubscriptionPrivateAccess default
  95. SubscriptionPrivateValues default
  96.  
  97. # Job-related operations must be done by the owner or an administrator...
  98. <Limit Create-Job Print-Job Print-URI Validate-Job>
  99. AuthType Default
  100. Order deny,allow
  101. </Limit>
  102.  
  103. <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>
  104. AuthType Default
  105. Require user @OWNER @SYSTEM
  106. Order deny,allow
  107. </Limit>
  108.  
  109. # All administration operations require an administrator to authenticate...
  110. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  111. AuthType Default
  112. Require user @SYSTEM
  113. Order deny,allow
  114. </Limit>
  115.  
  116. # All printer operations require a printer operator to authenticate...
  117. <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>
  118. AuthType Default
  119. Require user @SYSTEM
  120. Order deny,allow
  121. </Limit>
  122.  
  123. # Only the owner or an administrator can cancel or authenticate a job...
  124. <Limit Cancel-Job CUPS-Authenticate-Job>
  125. AuthType Default
  126. Require user @OWNER @SYSTEM
  127. Order deny,allow
  128. </Limit>
  129.  
  130. <Limit All>
  131. Order deny,allow
  132. </Limit>
  133. </Policy>
  134.  
  135. #
  136. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement