daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Apr 19th, 2017 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. # Only listen for connections from the local machine.
  16. Listen localhost:631
  17. Listen /var/run/cups/cups.sock
  18.  
  19. # Show shared printers on the local network.
  20. Browsing Off
  21. BrowseLocalProtocols dnssd
  22.  
  23. # Default authentication type, when authentication is required...
  24. DefaultAuthType Basic
  25.  
  26. # Web interface setting...
  27. WebInterface Yes
  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.   Allow localhost
  38. </Location>
  39.  
  40. # Restrict access to configuration files...
  41. <Location /admin/conf>
  42.   #AuthType Default
  43.   Require user @SYSTEM
  44.   Order allow,deny
  45. </Location>
  46.  
  47. # Set the default printer/job policies...
  48. <Policy default>
  49.   # Job/subscription privacy...
  50.   JobPrivateAccess default
  51.   JobPrivateValues default
  52.   SubscriptionPrivateAccess default
  53.   SubscriptionPrivateValues default
  54.  
  55.   # Job-related operations must be done by the owner or an administrator...
  56.   <Limit Create-Job Print-Job Print-URI Validate-Job>
  57.     Order deny,allow
  58.   </Limit>
  59.  
  60.   <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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
  61.     Require user @OWNER @SYSTEM
  62.     Order deny,allow
  63.   </Limit>
  64.  
  65.   # All administration operations require an administrator to authenticate...
  66.   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  67.     AuthType Default
  68.     Require user @SYSTEM
  69.     Order deny,allow
  70.   </Limit>
  71.  
  72.   # All printer operations require a printer operator to authenticate...
  73.   <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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
  74.     AuthType Default
  75.     Require user @SYSTEM
  76.     Order deny,allow
  77.   </Limit>
  78.  
  79.   # Only the owner or an administrator can cancel or authenticate a job...
  80.   <Limit Cancel-Job CUPS-Authenticate-Job>
  81.     Require user @OWNER @SYSTEM
  82.     Order deny,allow
  83.   </Limit>
  84.  
  85.   <Limit All>
  86.     Order deny,allow
  87.   </Limit>
  88. </Policy>
  89.  
  90. # Set the authenticated printer/job policies...
  91. <Policy authenticated>
  92.   # Job/subscription privacy...
  93.   JobPrivateAccess default
  94.   JobPrivateValues default
  95.   SubscriptionPrivateAccess default
  96.   SubscriptionPrivateValues default
  97.  
  98.   # Job-related operations must be done by the owner or an administrator...
  99.   <Limit Create-Job Print-Job Print-URI Validate-Job>
  100.     AuthType Default
  101.     Order deny,allow
  102.   </Limit>
  103.  
  104.   <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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
  105.     AuthType Default
  106.     Require user @OWNER @SYSTEM
  107.     Order deny,allow
  108.   </Limit>
  109.  
  110.   # All administration operations require an administrator to authenticate...
  111.   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  112.     AuthType Default
  113.     Require user @SYSTEM
  114.     Order deny,allow
  115.   </Limit>
  116.  
  117.   # All printer operations require a printer operator to authenticate...
  118.   <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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
  119.     AuthType Default
  120.     Require user @SYSTEM
  121.     Order deny,allow
  122.   </Limit>
  123.  
  124.   # Only the owner or an administrator can cancel or authenticate a job...
  125.   <Limit Cancel-Job CUPS-Authenticate-Job>
  126.     AuthType Default
  127.     Require user @OWNER @SYSTEM
  128.     Order deny,allow
  129.   </Limit>
  130.  
  131.   <Limit All>
  132.     Order deny,allow
  133.   </Limit>
  134. </Policy>
  135.  
  136. #
  137. #
RAW Paste Data
Top