/cups/cupsd.conf.default

http://github.com/brinkman83/bashrc · Unknown · 126 lines · 104 code · 22 blank · 0 comment · 0 complexity · a68d54d76021e857dd1d64edf57d36c5 MD5 · raw file

  1. #
  2. # "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z 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 warn
  10. # Deactivate CUPS' internal logrotating, as we provide a better one, especially
  11. # LogLevel debug2 gets usable now
  12. MaxLogSize 0
  13. # Administrator user group...
  14. SystemGroup lpadmin
  15. # Only listen for connections from the local machine.
  16. Listen localhost:631
  17. Listen /var/run/cups/cups.sock
  18. # Show shared printers on the local network.
  19. Browsing Off
  20. BrowseOrder allow,deny
  21. BrowseAllow all
  22. BrowseLocalProtocols CUPS dnssd
  23. BrowseAddress @LOCAL
  24. # Default authentication type, when authentication is required...
  25. DefaultAuthType Basic
  26. # Restrict access to the server...
  27. <Location />
  28. Order allow,deny
  29. </Location>
  30. # Restrict access to the admin pages...
  31. <Location /admin>
  32. Order allow,deny
  33. </Location>
  34. # Restrict access to configuration files...
  35. <Location /admin/conf>
  36. AuthType Default
  37. Require user @SYSTEM
  38. Order allow,deny
  39. </Location>
  40. # Set the default printer/job policies...
  41. <Policy default>
  42. # Job-related operations must be done by the owner or an administrator...
  43. <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 CUPS-Move-Job CUPS-Get-Document>
  44. Require user @OWNER @SYSTEM
  45. Order deny,allow
  46. </Limit>
  47. # All administration operations require an administrator to authenticate...
  48. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  49. AuthType Default
  50. Require user @SYSTEM
  51. Order deny,allow
  52. </Limit>
  53. # All printer operations require a printer operator to authenticate...
  54. <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 CUPS-Accept-Jobs CUPS-Reject-Jobs>
  55. AuthType Default
  56. Require user @SYSTEM
  57. Order deny,allow
  58. </Limit>
  59. # Only the owner or an administrator can cancel or authenticate a job...
  60. <Limit Cancel-Job CUPS-Authenticate-Job>
  61. Require user @OWNER @SYSTEM
  62. Order deny,allow
  63. </Limit>
  64. <Limit All>
  65. Order deny,allow
  66. </Limit>
  67. </Policy>
  68. # Set the authenticated printer/job policies...
  69. <Policy authenticated>
  70. # Job-related operations must be done by the owner or an administrator...
  71. <Limit Create-Job Print-Job Print-URI>
  72. AuthType Default
  73. Order deny,allow
  74. </Limit>
  75. <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 CUPS-Move-Job CUPS-Get-Document>
  76. AuthType Default
  77. Require user @OWNER @SYSTEM
  78. Order deny,allow
  79. </Limit>
  80. # All administration operations require an administrator to authenticate...
  81. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  82. AuthType Default
  83. Require user @SYSTEM
  84. Order deny,allow
  85. </Limit>
  86. # All printer operations require a printer operator to authenticate...
  87. <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 CUPS-Accept-Jobs CUPS-Reject-Jobs>
  88. AuthType Default
  89. Require user @SYSTEM
  90. Order deny,allow
  91. </Limit>
  92. # Only the owner or an administrator can cancel or authenticate a job...
  93. <Limit Cancel-Job CUPS-Authenticate-Job>
  94. AuthType Default
  95. Require user @OWNER @SYSTEM
  96. Order deny,allow
  97. </Limit>
  98. <Limit All>
  99. Order deny,allow
  100. </Limit>
  101. </Policy>
  102. #
  103. # End of "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $".
  104. #