tobast

Untitled

Oct 15th, 2011
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.21 KB | None | 0 0
  1. #
  2. #
  3. # Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
  4. # complete description of this file.
  5. #
  6.  
  7. # Log general information in error_log - change "warn" to "debug"
  8. # for troubleshooting...
  9. LogLevel warn
  10.  
  11. # Deactivate CUPS' internal logrotating, as we provide a better one, especially
  12. # LogLevel debug2 gets usable now
  13. MaxLogSize 0
  14.  
  15. # Administrator user group...
  16. SystemGroup lpadmin
  17.  
  18.  
  19. # Only listen for connections from the local machine.
  20. Listen localhost:631
  21. Listen /var/run/cups/cups.sock
  22.  
  23. # Show shared printers on the local network.
  24. Browsing Off
  25. BrowseOrder allow,deny
  26. BrowseAllow all
  27. BrowseLocalProtocols CUPS dnssd
  28. BrowseAddress @LOCAL
  29.  
  30. # Default authentication type, when authentication is required...
  31. DefaultAuthType Basic
  32.  
  33. # Restrict access to the server...
  34. <Location />
  35.   Order allow,deny
  36. </Location>
  37.  
  38. # Restrict access to the admin pages...
  39. <Location /admin>
  40.   Order allow,deny
  41. </Location>
  42.  
  43. # Restrict access to configuration files...
  44. <Location /admin/conf>
  45.   AuthType Default
  46.   Require user @SYSTEM
  47.   Order allow,deny
  48. </Location>
  49.  
  50. # Set the default printer/job policies...
  51. <Policy default>
  52.   # Job-related operations must be done by the owner or an administrator...
  53.   <Limit Create-Job Print-Job Print-URI Validate-Job>
  54.     Order deny,allow
  55.   </Limit>
  56.  
  57.   <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>
  58.     Require user @OWNER @SYSTEM
  59.     Order deny,allow
  60.   </Limit>
  61.  
  62.   # All administration operations require an administrator to authenticate...
  63.   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  64.     AuthType Default
  65.     Require user @SYSTEM
  66.     Order deny,allow
  67.   </Limit>
  68.  
  69.   # All printer operations require a printer operator to authenticate...
  70.   <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>
  71.     AuthType Default
  72.     Require user @SYSTEM
  73.     Order deny,allow
  74.   </Limit>
  75.  
  76.   # Only the owner or an administrator can cancel or authenticate a job...
  77.   <Limit Cancel-Job CUPS-Authenticate-Job>
  78.     Require user @OWNER @SYSTEM
  79.     Order deny,allow
  80.   </Limit>
  81.  
  82.   <Limit All>
  83.     Order deny,allow
  84.   </Limit>
  85. </Policy>
  86.  
  87. # Set the authenticated printer/job policies...
  88. <Policy authenticated>
  89.   # Job-related operations must be done by the owner or an administrator...
  90.   <Limit Create-Job Print-Job Print-URI Validate-Job>
  91.     AuthType Default
  92.     Order deny,allow
  93.   </Limit>
  94.  
  95.   <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>
  96.     AuthType Default
  97.     Require user @OWNER @SYSTEM
  98.     Order deny,allow
  99.   </Limit>
  100.  
  101.   # All administration operations require an administrator to authenticate...
  102.   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  103.     AuthType Default
  104.     Require user @SYSTEM
  105.     Order deny,allow
  106.   </Limit>
  107.  
  108.   # All printer operations require a printer operator to authenticate...
  109.   <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>
  110.     AuthType Default
  111.     Require user @SYSTEM
  112.     Order deny,allow
  113.   </Limit>
  114.  
  115.   # Only the owner or an administrator can cancel or authenticate a job...
  116.   <Limit Cancel-Job CUPS-Authenticate-Job>
  117.     AuthType Default
  118.     Require user @OWNER @SYSTEM
  119.     Order deny,allow
  120.   </Limit>
  121.  
  122.   <Limit All>
  123.     Order deny,allow
  124.   </Limit>
  125. </Policy>
  126.  
  127. #
  128. #
  129.  
  130.  
Advertisement
Add Comment
Please, Sign In to add comment