Guest User

Untitled

a guest
Jun 14th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 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 Debug
  11.  
  12. # Administrator user group...
  13. SystemGroup lp lpadmin 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. BrowseOrder allow,deny
  23. BrowseAllow all
  24. BrowseLocalProtocols CUPS dnssd
  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. </Location>
  36.  
  37. # Restrict access to the admin pages...
  38. <Location /admin>
  39. Order allow,deny
  40. </Location>
  41.  
  42. # Restrict access to configuration files...
  43. <Location /admin/conf>
  44. AuthType Default
  45. Require user @SYSTEM
  46. Order allow,deny
  47. </Location>
  48.  
  49. # Set the default printer/job policies...
  50. <Policy default>
  51. # Job/subscription privacy...
  52. JobPrivateAccess default
  53. JobPrivateValues default
  54. SubscriptionPrivateAccess default
  55. SubscriptionPrivateValues default
  56.  
  57. # Job-related operations must be done by the owner or an administrator...
  58. <Limit Create-Job Print-Job Print-URI Validate-Job>
  59. Order deny,allow
  60. </Limit>
  61.  
  62. <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>
  63. Require user @OWNER @SYSTEM
  64. Order deny,allow
  65. </Limit>
  66.  
  67. # All administration operations require an administrator to authenticate...
  68. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  69. AuthType Default
  70. Require user @SYSTEM
  71. Order deny,allow
  72. </Limit>
  73.  
  74. # All printer operations require a printer operator to authenticate...
  75. <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>
  76. AuthType Default
  77. Require user @SYSTEM
  78. Order deny,allow
  79. </Limit>
  80.  
  81. # Only the owner or an administrator can cancel or authenticate a job...
  82. <Limit Cancel-Job CUPS-Authenticate-Job>
  83. Require user @OWNER @SYSTEM
  84. Order deny,allow
  85. </Limit>
  86.  
  87. <Limit All>
  88. Order deny,allow
  89. </Limit>
  90. </Policy>
  91.  
  92. # Set the authenticated printer/job policies...
  93. <Policy authenticated>
  94. # Job/subscription privacy...
  95. JobPrivateAccess default
  96. JobPrivateValues default
  97. SubscriptionPrivateAccess default
  98. SubscriptionPrivateValues default
  99.  
  100. # Job-related operations must be done by the owner or an administrator...
  101. <Limit Create-Job Print-Job Print-URI Validate-Job>
  102. AuthType Default
  103. Order deny,allow
  104. </Limit>
  105.  
  106. <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>
  107. AuthType Default
  108. Require user @OWNER @SYSTEM
  109. Order deny,allow
  110. </Limit>
  111.  
  112. # All administration operations require an administrator to authenticate...
  113. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  114. AuthType Default
  115. Require user @SYSTEM
  116. Order deny,allow
  117. </Limit>
  118.  
  119. # All printer operations require a printer operator to authenticate...
  120. <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>
  121. AuthType Default
  122. Require user @SYSTEM
  123. Order deny,allow
  124. </Limit>
  125.  
  126. # Only the owner or an administrator can cancel or authenticate a job...
  127. <Limit Cancel-Job CUPS-Authenticate-Job>
  128. AuthType Default
  129. Require user @OWNER @SYSTEM
  130. Order deny,allow
  131. </Limit>
  132.  
  133. <Limit All>
  134. Order deny,allow
  135. </Limit>
  136. </Policy>
  137.  
  138. #
  139. # End of "$Id: cupsd.conf.in 9407 2010-12-09 21:24:51Z mike $".
  140. #
Advertisement
Add Comment
Please, Sign In to add comment