NoPaste

cups.conf von feldmaus 2010 April 29

von feldmaus

SNIPPET_TEXT:
  1. #
  2. #
  3. #   Sample configuration file for the Common UNIX Printing System (CUPS)
  4. #   scheduler.  See "man cupsd.conf" for a complete description of this
  5. #   file.
  6. #
  7.  
  8. # Log general information in error_log - change "info" to "debug" for
  9. # troubleshooting...
  10. LogLevel warning
  11.  
  12. # Administrator user group...
  13. SystemGroup lpadmin
  14.  
  15.  
  16. # Only listen for connections from the local machine.
  17. Listen 127.0.0.1:631
  18. Listen 192.168.0.186:631
  19. Listen /var/run/cups/cups.sock
  20.  
  21. # Show shared printers on the local network.
  22. Browsing On
  23. BrowseOrder allow,deny
  24. BrowseAllow 192.168.0.0/24
  25. BrowseAllow 192.168.1.0/24
  26. BrowseAllow 192.168.2.0/24
  27.  
  28. # Default authentication type, when authentication is required...
  29. DefaultAuthType Basic
  30.  
  31. # Restrict access to the server...
  32. <Location />
  33.   Order allow,deny
  34.   Allow 192.168.0.0/24
  35. </Location>
  36.  
  37. # Restrict access to the admin pages...
  38. <Location /admin>
  39.   Order allow,deny
  40.   Allow 192.168.0.0/24
  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.   Allow 192.168.0.0/24
  49. </Location>
  50.  
  51. # Set the default printer/job policies...
  52. <Policy default>
  53.   # Job-related operations must be done by the owner or an administrator...
  54.   <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>
  55.     Require user @OWNER @SYSTEM
  56.     Order deny,allow
  57.   </Limit>
  58.  
  59.   # All administration operations require an administrator to authenticate...
  60.   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  61.     AuthType Default
  62.     Require user @SYSTEM
  63.     Order deny,allow
  64.   </Limit>
  65.  
  66.   # All printer operations require a printer operator to authenticate...
  67.   <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>
  68.     AuthType Default
  69.     Require user @SYSTEM
  70.     Order deny,allow
  71.   </Limit>
  72.  
  73.   # Only the owner or an administrator can cancel or authenticate a job...
  74.   <Limit Cancel-Job CUPS-Authenticate-Job>
  75.     Require user @OWNER @SYSTEM
  76.     Order deny,allow
  77.   </Limit>
  78.  
  79.   <Limit All>
  80.     Order deny,allow
  81.   </Limit>
  82. </Policy>
  83.  
  84. #
  85. #

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN