NoPaste

cupsd.conf

von Anonymous

SNIPPET_TEXT:
  1. # Log general information in error_log - change "info" to "debug" for
  2. # troubleshooting...
  3. #LogLevel warning
  4. LogLevel debug2
  5. #LogLevel info
  6.  
  7. # Administrator user group...
  8. SystemGroup ux_cups_printadmin
  9. SystemGroup lpadmin
  10. #SystemGroup root
  11.  
  12. # Only listen for connections from the local machine.
  13. #Listen localhost:631
  14. Listen *:631
  15. Listen /var/run/cups/cups.sock
  16.  
  17. # Show shared printers on the local network.
  18. Browsing On
  19. BrowseOrder allow,deny
  20. #BrowseAllow @LOCAL
  21. BrowseAllow all
  22.  
  23. # Default authentication type, when authentication is required...
  24. DefaultAuthType Basic
  25.  
  26. # Restrict access to the server...
  27. <Location />
  28.   Order allow,deny
  29.   #Allow localhost
  30.   Allow all
  31. </Location>
  32.  
  33. # Restrict access to the admin pages...
  34. <Location /admin>
  35.   Encryption Required
  36.   AuthType Basic
  37.   #AuthClass System
  38.   Require user @SYSTEM @ux_cups_printadmin
  39.   Order allow,deny
  40.   #Allow localhost
  41.   Allow all
  42. </Location>
  43.  
  44. # Restrict access to configuration files...
  45. <Location /admin/conf>
  46.   AuthType Basic
  47.   Require user @SYSTEM @ux_cups_printadmin
  48.   Order allow,deny
  49.   #Allow localhost
  50.   Allow all
  51. </Location>
  52.  
  53. # Set the default printer/job policies...
  54. <Policy default>
  55.   # Job-related operations must be done by the owner or an adminstrator...
  56.   <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>
  57.     Require user @OWNER @ux_cups_printadmin @SYSTEM
  58.     Order deny,allow
  59.   </Limit>
  60.  
  61.   # All administration operations require an adminstrator to authenticate...
  62.   <Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
  63.     AuthType Basic
  64.     Require user @ux_cups_printadmin @SYSTEM
  65.     Order deny,allow
  66.   </Limit>
  67.  
  68.   # Only the owner or an administrator can cancel or authenticate a job...
  69.   <Limit Cancel-Job CUPS-Authenticate-Job>
  70.     Require user @OWNER @ux_cups_printadmin @SYSTEM
  71.     Order deny,allow
  72.   </Limit>
  73.  
  74.   <Limit All>
  75.     Order deny,allow
  76.   </Limit>
  77. </Policy>
  78.  
  79. <Policy test>
  80.  # Job-related operations must be done by the owner or an ux_cups_jobadmin or an adminstrator...
  81.   <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 Pause-Printer Resume-Printer Enable-Printer Activate-Printer Restart-Printer Startup-Printer Cancel-Job>
  82.     ##Require user @OWNER @lpadmin @ux_cups_printadmin
  83.     Require user @OWNER @ux_cups_printadmin
  84.     Order deny,allow
  85.   </Limit>
  86.  
  87.   # All administration operations require an adminstrator to authenticate...
  88.   <Limit Set-Printer-Attributes Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Shutdown-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
  89.     ##Require user @OWNER @lpadmin @ux_cups_printadmin
  90.     Require user @OWNER @ux_cups_printadmin
  91.     Order deny,allow
  92.   </Limit>
  93.  
  94.   # Only the administrator can authenticate a job...
  95.   <Limit CUPS-Authenticate-Job>
  96.     ##Require user @OWNER @lpadmin @ux_cups_printadmin
  97.     Require user @OWNER @ux_cups_printadmin
  98.     Order deny,allow
  99.   </Limit>
  100.  
  101.   <Limit All>
  102.     Order deny,allow
  103.   </Limit>
  104. </Policy>
  105.  
  106. #
  107. #
  108.  
  109. #
  110. # Printcap: the name of the printcap file.  Default is /etc/printcap.
  111. # Leave blank to disable printcap file generation.
  112. #
  113.  
  114. Printcap /var/run/cups/printcap
  115.  
  116. #
  117. # PrintcapFormat: the format of the printcap file, currently either
  118. # BSD or Solaris.  The default is "BSD".
  119. #
  120.  
  121. #PrintcapFormat BSD
  122. #PrintcapFormat Solaris
  123.  
  124. #
  125. # PrintcapGUI: the name of the GUI options panel program to associate
  126. # with print queues under IRIX.  The default is "/usr/bin/glpoptions"
  127. # from ESP Print Pro.
  128. #
  129. # This option is only used under IRIX; the options panel program
  130. # must accept the "-d printer" and "-o options" options and write
  131. # the selected printer options back to stdout on completion.
  132. #
  133.  
  134. #PrintcapGUI /usr/bin/glpoptions

Quellcode

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