Advertisement
Guest User

cupsd.conf

a guest
May 28th, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.58 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 debug
  10.  
  11. # Deactivate CUPS' internal logrotating, as we provide a better one, especially
  12. # LogLevel debug2 gets usable now
  13. MaxLogSize 0
  14.  
  15. # Administrator user group...
  16. SystemGroup lpadmin
  17.  
  18.  
  19. # Only listen for connections from the local machine.
  20. Listen 127.0.0.1:631
  21. Listen /var/run/cups/cups.sock
  22.  
  23. # Show shared printers on the local network.
  24. Browsing Off
  25. BrowseLocalProtocols dnssd
  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. </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. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement