Advertisement
Guest User

cupsd.conf

a guest
Aug 17th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 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 warn
  11.  
  12. # Deactivate CUPS' internal logrotating, as we provide a better one, especially
  13. # LogLevel debug2 gets usable now
  14. MaxLogSize 0
  15.  
  16. # Administrator user group...
  17. SystemGroup lpadmin
  18.  
  19.  
  20. # Only listen for connections from the local machine.
  21. Listen *:631
  22. Listen /var/run/cups/cups.sock
  23.  
  24. # Show shared printers on the local network.
  25. Browsing Off
  26. BrowseOrder allow,deny
  27. BrowseAllow all
  28. BrowseLocalProtocols CUPS dnssd
  29. BrowseAddress @LOCAL
  30.  
  31. # Default authentication type, when authentication is required...
  32. DefaultAuthType Basic
  33.  
  34. # Web interface setting...
  35. WebInterface Yes
  36.  
  37. # Restrict access to the server...
  38. <Location />
  39. Order allow,deny
  40. Allow localhost
  41. Allow @LOCAL
  42. </Location>
  43.  
  44. # Restrict access to the admin pages...
  45. <Location /admin>
  46. Order allow,deny
  47. Allow localhost
  48. Allow @LOCAL
  49. </Location>
  50.  
  51. # Restrict access to configuration files...
  52. <Location /admin/conf>
  53. AuthType Default
  54. Require user @SYSTEM
  55. Order allow,deny
  56. Allow localhost
  57. Allow @LOCAL
  58. </Location>
  59.  
  60. # Set the default printer/job policies...
  61. <Policy default>
  62. # Job/subscription privacy...
  63. JobPrivateAccess default
  64. JobPrivateValues default
  65. SubscriptionPrivateAccess default
  66. SubscriptionPrivateValues default
  67.  
  68. # Job-related operations must be done by the owner or an administrator...
  69. <Limit Create-Job Print-Job Print-URI Validate-Job>
  70. AuthType Default
  71. Order deny,allow
  72. </Limit>
  73.  
  74. <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set$
  75. AuthType Default
  76. Require user @OWNER @SYSTEM
  77. Order deny,allow
  78. </Limit>
  79.  
  80. # All administration operations require an administrator to authenticate...
  81. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS$
  82. AuthType Default
  83. Require user @SYSTEM
  84. Order deny,allow
  85. </Limit>
  86.  
  87. # All printer operations require a printer operator to authenticate...
  88. <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Prin$
  89. AuthType Default
  90. Require user @SYSTEM
  91. Order deny,allow
  92. </Limit>
  93.  
  94. # Only the owner or an administrator can cancel or authenticate a job...
  95. <Limit Cancel-Job CUPS-Authenticate-Job>
  96. AuthType Default
  97. Require user @OWNER @SYSTEM
  98. Order deny,allow
  99. </Limit>
  100.  
  101. <Limit All>
  102. Order deny,allow
  103. </Limit>
  104. </Policy>
  105.  
  106. #
  107. # End of "$Id: cupsd.conf.in 9407 2010-12-09 21:24:51Z mike $".
  108. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement