Advertisement
TBotNik

Cups & Ifconfig

Aug 18th, 2011
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.41 KB | None | 0 0
  1. Cups config file:
  2.  
  3. #
  4. #
  5. # Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
  6. # complete description of this file.
  7. #
  8.  
  9. # Log general information in error_log - change "warn" to "debug"
  10. # for troubleshooting...
  11. LogLevel warn
  12.  
  13. # Deactivate CUPS' internal logrotating, as we provide a better one, especially
  14. # LogLevel debug2 gets usable now
  15. MaxLogSize 0
  16.  
  17. # Administrator user group...
  18. SystemGroup lpadmin
  19.  
  20.  
  21. # Only listen for connections from the local machine.
  22. Listen localhost:631
  23. Listen 192.168.3.2:631
  24. #Listen 192.168.3.10:631
  25. Listen /var/run/cups/cups.sock
  26.  
  27. # Show shared printers on the local network.
  28. Browsing Off
  29. BrowseOrder allow,deny
  30. BrowseAllow all
  31. BrowseLocalProtocols CUPS dnssd
  32. BrowseAddress @LOCAL
  33.  
  34. # Default authentication type, when authentication is required...
  35. DefaultAuthType Basic
  36.  
  37. # Restrict access to the server...
  38. <Location />
  39. Order allow,deny
  40. </Location>
  41.  
  42. # Restrict access to the admin pages...
  43. <Location /admin>
  44. Order allow,deny
  45. </Location>
  46.  
  47. # Restrict access to configuration files...
  48. <Location /admin/conf>
  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-related operations must be done by the owner or an administrator...
  57. <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 CUPS-Get-Document>
  58. Require user @OWNER @SYSTEM
  59. Order deny,allow
  60. </Limit>
  61.  
  62. # All administration operations require an administrator to authenticate...
  63. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  64. AuthType Default
  65. Require user @SYSTEM
  66. Order deny,allow
  67. </Limit>
  68.  
  69. # All printer operations require a printer operator to authenticate...
  70. <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 CUPS-Accept-Jobs CUPS-Reject-Jobs>
  71. AuthType Default
  72. Require user @SYSTEM
  73. Order deny,allow
  74. </Limit>
  75.  
  76. # Only the owner or an administrator can cancel or authenticate a job...
  77. <Limit Cancel-Job CUPS-Authenticate-Job>
  78. Require user @OWNER @SYSTEM
  79. Order deny,allow
  80. </Limit>
  81.  
  82. <Limit All>
  83. Order deny,allow
  84. </Limit>
  85. </Policy>
  86.  
  87. # Set the authenticated printer/job policies...
  88. <Policy authenticated>
  89. # Job-related operations must be done by the owner or an administrator...
  90. <Limit Create-Job Print-Job Print-URI>
  91. AuthType Default
  92. Order deny,allow
  93. </Limit>
  94.  
  95. <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 CUPS-Get-Document>
  96. AuthType Default
  97. Require user @OWNER @SYSTEM
  98. Order deny,allow
  99. </Limit>
  100.  
  101. # All administration operations require an administrator to authenticate...
  102. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  103. AuthType Default
  104. Require user @SYSTEM
  105. Order deny,allow
  106. </Limit>
  107.  
  108. # All printer operations require a printer operator to authenticate...
  109. <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 CUPS-Accept-Jobs CUPS-Reject-Jobs>
  110. AuthType Default
  111. Require user @SYSTEM
  112. Order deny,allow
  113. </Limit>
  114.  
  115. # Only the owner or an administrator can cancel or authenticate a job...
  116. <Limit Cancel-Job CUPS-Authenticate-Job>
  117. AuthType Default
  118. Require user @OWNER @SYSTEM
  119. Order deny,allow
  120. </Limit>
  121.  
  122. <Limit All>
  123. Order deny,allow
  124. </Limit>
  125. </Policy>
  126.  
  127. #
  128. #
  129.  
  130. IFCofig output
  131.  
  132. eth0 Link encap:Ethernet HWaddr 00:0c:f1:ac:5a:7b
  133. inet addr:192.168.3.12 Bcast:192.168.3.255 Mask:255.255.255.0
  134. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  135. RX packets:6689 errors:0 dropped:0 overruns:0 frame:0
  136. TX packets:4569 errors:0 dropped:0 overruns:0 carrier:0
  137. collisions:10 txqueuelen:1000
  138. RX bytes:2681502 (2.6 MB) TX bytes:587625 (587.6 KB)
  139.  
  140. lo Link encap:Local Loopback
  141. inet addr:127.0.0.1 Mask:255.0.0.0
  142. UP LOOPBACK RUNNING MTU:16436 Metric:1
  143. RX packets:2626 errors:0 dropped:0 overruns:0 frame:0
  144. TX packets:2626 errors:0 dropped:0 overruns:0 carrier:0
  145. collisions:0 txqueuelen:0
  146. RX bytes:416319 (416.3 KB) TX bytes:416319 (416.3 KB)
  147.  
  148. wlan0 Link encap:Ethernet HWaddr 00:0f:3d:ad:c3:c8
  149. inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0
  150. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  151. RX packets:25137 errors:0 dropped:0 overruns:0 frame:0
  152. TX packets:27074 errors:0 dropped:0 overruns:0 carrier:0
  153. collisions:0 txqueuelen:1000
  154. RX bytes:20233946 (20.2 MB) TX bytes:7584294 (7.5 MB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement