You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cupsd.conf 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. #
  2. #
  3. # Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
  4. # complete description of this file.
  5. #
  6. ServerAlias *
  7. # Log general information in error_log - change "warn" to "debug"
  8. # for troubleshooting...
  9. LogLevel warn
  10. # Deactivate CUPS' internal logrotating, as we provide a better one, especially
  11. # LogLevel debug2 gets usable now
  12. MaxLogSize 0
  13. # Listen to all
  14. Port 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. DefaultEncryption IfRequested
  22. # Web interface setting...
  23. WebInterface Yes
  24. # Restrict access to the server...
  25. <Location />
  26. Order allow,deny
  27. Allow all
  28. </Location>
  29. # Restrict access to the admin pages...
  30. <Location /admin>
  31. Order allow,deny
  32. Allow all
  33. </Location>
  34. # Restrict access to configuration files...
  35. <Location /admin/conf>
  36. AuthType Default
  37. Require user @SYSTEM
  38. Order allow,deny
  39. Allow all
  40. </Location>
  41. # Set the default printer/job policies...
  42. <Policy default>
  43. # Job/subscription privacy...
  44. JobPrivateAccess default
  45. JobPrivateValues default
  46. SubscriptionPrivateAccess default
  47. SubscriptionPrivateValues default
  48. # Job-related operations must be done by the owner or an administrator...
  49. <Limit Create-Job Print-Job Print-URI Validate-Job>
  50. Order deny,allow
  51. </Limit>
  52. <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>
  53. Require user @OWNER @SYSTEM
  54. Order deny,allow
  55. </Limit>
  56. # All administration operations require an administrator to authenticate...
  57. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  58. AuthType Default
  59. Require user @SYSTEM
  60. Order deny,allow
  61. </Limit>
  62. # All printer operations require a printer operator to authenticate...
  63. <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>
  64. AuthType Default
  65. Require user @SYSTEM
  66. Order deny,allow
  67. </Limit>
  68. # Only the owner or an administrator can cancel or authenticate a job...
  69. <Limit Cancel-Job CUPS-Authenticate-Job>
  70. Require user @OWNER @SYSTEM
  71. Order deny,allow
  72. </Limit>
  73. <Limit All>
  74. Order deny,allow
  75. </Limit>
  76. </Policy>
  77. # Set the authenticated printer/job policies...
  78. <Policy authenticated>
  79. # Job/subscription privacy...
  80. JobPrivateAccess default
  81. JobPrivateValues default
  82. SubscriptionPrivateAccess default
  83. SubscriptionPrivateValues default
  84. # Job-related operations must be done by the owner or an administrator...
  85. <Limit Create-Job Print-Job Print-URI Validate-Job>
  86. AuthType Default
  87. Order deny,allow
  88. </Limit>
  89. <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>
  90. AuthType Default
  91. Require user @OWNER @SYSTEM
  92. Order deny,allow
  93. </Limit>
  94. # All administration operations require an administrator to authenticate...
  95. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  96. AuthType Default
  97. Require user @SYSTEM
  98. Order deny,allow
  99. </Limit>
  100. # All printer operations require a printer operator to authenticate...
  101. <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>
  102. AuthType Default
  103. Require user @SYSTEM
  104. Order deny,allow
  105. </Limit>
  106. # Only the owner or an administrator can cancel or authenticate a job...
  107. <Limit Cancel-Job CUPS-Authenticate-Job>
  108. AuthType Default
  109. Require user @OWNER @SYSTEM
  110. Order deny,allow
  111. </Limit>
  112. <Limit All>
  113. Order deny,allow
  114. </Limit>
  115. </Policy>
  116. #
  117. #