cupsd.conf 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. # Log general information in error_log - change "warn" to "debug"
  8. # for troubleshooting...
  9. LogLevel debug
  10. # Deactivate CUPS' internal logrotating, as we provide a better one, especially
  11. # LogLevel debug2 gets usable now
  12. MaxLogSize 0
  13. # Only listen for connections from the local machine.
  14. Listen 192.168.1.123:631
  15. Listen /var/run/cups/cups.sock
  16. # Show shared printers on the local network.
  17. Browsing On
  18. BrowseLocalProtocols dnssd
  19. # Default authentication type, when authentication is required...
  20. DefaultAuthType Basic
  21. # Web interface setting...
  22. WebInterface Yes
  23. # Restrict access to the server...
  24. <Location />
  25. Order allow,deny
  26. Allow 192.168.1.*
  27. </Location>
  28. # Restrict access to the admin pages...
  29. <Location /admin>
  30. Order allow,deny
  31. Allow 192.168.1.*
  32. </Location>
  33. # Restrict access to configuration files...
  34. <Location /admin/conf>
  35. AuthType Default
  36. Require user @SYSTEM
  37. Order allow,deny
  38. </Location>
  39. # Set the default printer/job policies...
  40. <Policy default>
  41. # Job/subscription privacy...
  42. JobPrivateAccess default
  43. JobPrivateValues default
  44. SubscriptionPrivateAccess default
  45. SubscriptionPrivateValues default
  46. # Job-related operations must be done by the owner or an administrator...
  47. <Limit Create-Job Print-Job Print-URI Validate-Job>
  48. Order deny,allow
  49. </Limit>
  50. <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>
  51. Require user @OWNER @SYSTEM
  52. Order deny,allow
  53. </Limit>
  54. # All administration operations require an administrator to authenticate...
  55. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  56. AuthType Default
  57. Require user @SYSTEM
  58. Order deny,allow
  59. </Limit>
  60. # All printer operations require a printer operator to authenticate...
  61. <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>
  62. AuthType Default
  63. Require user @SYSTEM
  64. Order deny,allow
  65. </Limit>
  66. # Only the owner or an administrator can cancel or authenticate a job...
  67. <Limit Cancel-Job CUPS-Authenticate-Job>
  68. Require user @OWNER @SYSTEM
  69. Order deny,allow
  70. </Limit>
  71. <Limit All>
  72. Order deny,allow
  73. </Limit>
  74. </Policy>
  75. # Set the authenticated printer/job policies...
  76. <Policy authenticated>
  77. # Job/subscription privacy...
  78. JobPrivateAccess default
  79. JobPrivateValues default
  80. SubscriptionPrivateAccess default
  81. SubscriptionPrivateValues default
  82. # Job-related operations must be done by the owner or an administrator...
  83. <Limit Create-Job Print-Job Print-URI Validate-Job>
  84. AuthType Default
  85. Order deny,allow
  86. </Limit>
  87. <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>
  88. AuthType Default
  89. Require user @OWNER @SYSTEM
  90. Order deny,allow
  91. </Limit>
  92. # All administration operations require an administrator to authenticate...
  93. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  94. AuthType Default
  95. Require user @SYSTEM
  96. Order deny,allow
  97. </Limit>
  98. # All printer operations require a printer operator to authenticate...
  99. <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>
  100. AuthType Default
  101. Require user @SYSTEM
  102. Order deny,allow
  103. </Limit>
  104. # Only the owner or an administrator can cancel or authenticate a job...
  105. <Limit Cancel-Job CUPS-Authenticate-Job>
  106. AuthType Default
  107. Require user @OWNER @SYSTEM
  108. Order deny,allow
  109. </Limit>
  110. <Limit All>
  111. Order deny,allow
  112. </Limit>
  113. </Policy>
  114. #
  115. # End of "$Id: cupsd.conf.in 9407 2010-12-09 21:24:51Z mike $".
  116. #