NoPaste

Sid: Cups Versionen installieren

von KBDCALLS
SNIPPET_DESC:
Teil 2
SNIPPET_CREATION_TIME:
26.05.2019 15:40:36
SNIPPET_PRUNE_TIME:
Unendlich

SNIPPET_TEXT:
  1. cupsd.conf
  2. #
  3. # 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. PageLogFormat
  11.  
  12. # Deactivate CUPS' internal logrotating, as we provide a better one, especially
  13. # LogLevel debug2 gets usable now
  14. MaxLogSize 0
  15.  
  16. # Only listen for connections from the local machine.
  17. Listen localhost:631
  18. Listen /run/cups/cups.sock
  19.  
  20. # Show shared printers on the local network.
  21. Browsing On
  22. BrowseLocalProtocols dnssd
  23.  
  24. # Default authentication type, when authentication is required...
  25. DefaultAuthType Basic
  26.  
  27. # Web interface setting...
  28. WebInterface Yes
  29.  
  30. # Restrict access to the server...
  31. <Location />
  32.   Order allow,deny
  33. </Location>
  34.  
  35. # Restrict access to the admin pages...
  36. <Location /admin>
  37.   Order allow,deny
  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. # Restrict access to log files...
  48. <Location /admin/log>
  49.   AuthType Default
  50.   Require user @SYSTEM
  51.   Order allow,deny
  52. </Location>
  53.  
  54. # Set the default printer/job policies...
  55. <Policy default>
  56.   # Job/subscription privacy...
  57.   JobPrivateAccess default
  58.   JobPrivateValues default
  59.   SubscriptionPrivateAccess default
  60.   SubscriptionPrivateValues default
  61.  
  62.   # Job-related operations must be done by the owner or an administrator...
  63.   <Limit Create-Job Print-Job Print-URI Validate-Job>
  64.     Order deny,allow
  65.   </Limit>
  66.  
  67.   <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>
  68.     Require user @OWNER @SYSTEM
  69.     Order deny,allow
  70.   </Limit>
  71.  
  72.   # All administration operations require an administrator to authenticate...
  73.   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  74.     AuthType Default
  75.     Require user @SYSTEM
  76.     Order deny,allow
  77.   </Limit>
  78.  
  79.   # All printer operations require a printer operator to authenticate...
  80.   <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>
  81.     AuthType Default
  82.     Require user @SYSTEM
  83.     Order deny,allow
  84.   </Limit>
  85.  
  86.   # Only the owner or an administrator can cancel or authenticate a job...
  87.   <Limit Cancel-Job CUPS-Authenticate-Job>
  88.     Require user @OWNER @SYSTEM
  89.     Order deny,allow
  90.   </Limit>
  91.  
  92.   <Limit All>
  93.     Order deny,allow
  94.   </Limit>
  95. </Policy>
  96.  
  97. # Set the authenticated printer/job policies...
  98. <Policy authenticated>
  99.   # Job/subscription privacy...
  100.   JobPrivateAccess default
  101.   JobPrivateValues default
  102.   SubscriptionPrivateAccess default
  103.   SubscriptionPrivateValues default
  104.  
  105.   # Job-related operations must be done by the owner or an administrator...
  106.   <Limit Create-Job Print-Job Print-URI Validate-Job>
  107.     AuthType Default
  108.     Order deny,allow
  109.   </Limit>
  110.  
  111.   <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>
  112.     AuthType Default
  113.     Require user @OWNER @SYSTEM
  114.     Order deny,allow
  115.   </Limit>
  116.  
  117.   # All administration operations require an administrator to authenticate...
  118.   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  119.     AuthType Default
  120.     Require user @SYSTEM
  121.     Order deny,allow
  122.   </Limit>
  123.  
  124.   # All printer operations require a printer operator to authenticate...
  125.   <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>
  126.     AuthType Default
  127.     Require user @SYSTEM
  128.     Order deny,allow
  129.   </Limit>
  130.  
  131.   # Only the owner or an administrator can cancel or authenticate a job...
  132.   <Limit Cancel-Job CUPS-Authenticate-Job>
  133.     AuthType Default
  134.     Require user @OWNER @SYSTEM
  135.     Order deny,allow
  136.   </Limit>
  137.  
  138.   <Limit All>
  139.     Order deny,allow
  140.   </Limit>
  141. </Policy>
  142.  
  143. # Set the kerberized printer/job policies...
  144. <Policy kerberos>
  145.   # Job/subscription privacy...
  146.   JobPrivateAccess default
  147.   JobPrivateValues default
  148.   SubscriptionPrivateAccess default
  149.   SubscriptionPrivateValues default
  150.  
  151.   # Job-related operations must be done by the owner or an administrator...
  152.   <Limit Create-Job Print-Job Print-URI Validate-Job>
  153.     AuthType Negotiate
  154.     Order deny,allow
  155.   </Limit>
  156.  
  157.   <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>
  158.     AuthType Negotiate
  159.     Require user @OWNER @SYSTEM
  160.     Order deny,allow
  161.   </Limit>
  162.  
  163.   # All administration operations require an administrator to authenticate...
  164.   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  165.     AuthType Default
  166.     Require user @SYSTEM
  167.     Order deny,allow
  168.   </Limit>
  169.  
  170.   # All printer operations require a printer operator to authenticate...
  171.   <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>
  172.     AuthType Default
  173.     Require user @SYSTEM
  174.     Order deny,allow
  175.   </Limit>
  176.  
  177.   # Only the owner or an administrator can cancel or authenticate a job...
  178.   <Limit Cancel-Job CUPS-Authenticate-Job>
  179.     AuthType Negotiate
  180.     Require user @OWNER @SYSTEM
  181.     Order deny,allow
  182.   </Limit>
  183.  
  184.   <Limit All>
  185.     Order deny,allow
  186.   </Limit>
  187. </Policy>

Quellcode

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