Advertisement
droidzone

cups-gentoo

May 15th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. #
  2. # "$Id: cupsd.conf.in 9310 2010-09-21 22:34:57Z 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. # Administrator user group...
  13. SystemGroup lpadmin
  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
  25.  
  26. # Default authentication type, when authentication is required...
  27. DefaultAuthType Basic
  28.  
  29. # Restrict access to the server...
  30. <Location />
  31. Order allow,deny
  32. </Location>
  33.  
  34. # Restrict access to the admin pages...
  35. <Location /admin>
  36. Order allow,deny
  37. </Location>
  38.  
  39. # Restrict access to configuration files...
  40. <Location /admin/conf>
  41. AuthType Default
  42. Require user @SYSTEM
  43. Order allow,deny
  44. </Location>
  45.  
  46. # Set the default printer/job policies...
  47. <Policy 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.  
  53. <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>
  54. Require user @OWNER @SYSTEM
  55. Order deny,allow
  56. </Limit>
  57.  
  58. # All administration operations require an administrator to authenticate...
  59. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  60. AuthType Default
  61. Require user @SYSTEM
  62. Order allow,deny
  63. </Limit>
  64.  
  65. # All printer operations require a printer operator to authenticate...
  66. <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>
  67. AuthType Default
  68. Require user @SYSTEM
  69. Order allow,deny
  70. </Limit>
  71.  
  72. # Only the owner or an administrator can cancel or authenticate a job...
  73. <Limit Cancel-Job CUPS-Authenticate-Job>
  74. Require user @OWNER @SYSTEM
  75. Order deny,allow
  76. </Limit>
  77.  
  78. <Limit All>
  79. Order deny,allow
  80. </Limit>
  81. </Policy>
  82.  
  83. # Set the authenticated printer/job policies...
  84. <Policy authenticated>
  85. # Job-related operations must be done by the owner or an administrator...
  86. <Limit Create-Job Print-Job Print-URI Validate-Job>
  87. AuthType Default
  88. Order deny,allow
  89. </Limit>
  90.  
  91. <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>
  92. AuthType Default
  93. Require user @OWNER @SYSTEM
  94. Order deny,allow
  95. </Limit>
  96.  
  97. # All administration operations require an administrator to authenticate...
  98. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  99. AuthType Default
  100. Require user @SYSTEM
  101. Order allow,deny
  102. </Limit>
  103.  
  104. # All printer operations require a printer operator to authenticate...
  105. <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>
  106. AuthType Default
  107. Require user @SYSTEM
  108. Order allow,deny
  109. </Limit>
  110.  
  111. # Only the owner or an administrator can cancel or authenticate a job...
  112. <Limit Cancel-Job CUPS-Authenticate-Job>
  113. AuthType Default
  114. Require user @OWNER @SYSTEM
  115. Order deny,allow
  116. </Limit>
  117.  
  118. <Limit All>
  119. Order allow,deny
  120. </Limit>
  121. </Policy>
  122.  
  123. #
  124. # End of "$Id: cupsd.conf.in 9310 2010-09-21 22:34:57Z mike $".
  125. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement