daily pastebin goal
15%
SHARE
TWEET

Untitled

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