daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Oct 29th, 2015 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
  2. # complete description of this file.
  3. #
  4.  
  5. # Log general information in error_log - change "warn" to "debug"
  6. # for troubleshooting...
  7. LogLevel warn
  8.  
  9. # Deactivate CUPS' internal logrotating, as we provide a better one, especially
  10. # LogLevel debug2 gets usable now
  11. MaxLogSize 0
  12.  
  13. # Only listen for connections from the local machine.
  14. Listen 192.168.0.*:631
  15. Listen /var/run/cups/cups.sock
  16.  
  17. # Show shared printers on the local network.
  18. Browsing On
  19. BrowseAddress 192.168.0.*:631
  20. BrowseLocalProtocols dnssd
  21.  
  22. # Default authentication type, when authentication is required...
  23. DefaultAuthType Basic
  24.  
  25. # Web interface setting...
  26. WebInterface Yes
  27.  
  28. # Restrict access to the server...
  29. <Location />
  30.   Order allow,deny
  31.   Allow localhost
  32.   Allow from 192.168.0.*
  33. </Location>
  34.  
  35. # Restrict access to the admin pages...
  36. <Location /admin>
  37.   Order allow,deny
  38.   Allow localhost
  39.   Allow from 192.168.0.*
  40. </Location>
  41.  
  42. # Restrict access to configuration files...
  43. <Location /admin/conf>
  44.   AuthType Default
  45.   Require user @SYSTEM
  46.   Order allow,deny
  47. </Location>
  48.  
  49. # Set the default printer/job policies...
  50. <Policy default>
  51.   # Job/subscription privacy...
  52.   JobPrivateAccess default
  53.   JobPrivateValues default
  54.   SubscriptionPrivateAccess default
  55.   SubscriptionPrivateValues default
  56.  
  57.   # Job-related operations must be done by the owner or an administrator...
  58.   <Limit Create-Job Print-Job Print-URI Validate-Job>
  59.     Order deny,allow
  60.   </Limit>
  61.  
  62.   <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Can$
  63.     Require user @OWNER @SYSTEM
  64.     Order deny,allow
  65.   </Limit>
  66.  
  67.   # All administration operations require an administrator to authenticate...
  68.   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  69.     AuthType Default
  70.     Require user @SYSTEM
  71.     Order deny,allow
  72.   </Limit>
RAW Paste Data
Top