Guest User

SMB.CONF & CUPSD.CONF

a guest
Jun 6th, 2010
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. SMB.CONF
  2.  
  3. [global]
  4. workgroup = WORKGROUP
  5. netbios name = CookHome
  6. server string = %h server (Samba, Arch)
  7. wins support = yes
  8.  
  9. domain master = yes
  10. local master = yes
  11. preferred master = yes
  12. os level = 65
  13.  
  14. security = share
  15. map to guest = bad user
  16.  
  17. load printers = yes
  18. printing = cups
  19. printcap name = cups
  20.  
  21. hosts allow = 127.0.0.1 192.168.1.0/24
  22. hosts deny = 0.0.0.0/0
  23.  
  24. [cookhome]
  25. comment = CookHome File Share
  26. path = /srv/samba/cookhome
  27. browsable = yes
  28. guest only = yes
  29. read only = no
  30. create mask = 0777
  31.  
  32. [printers]
  33. comment = CookHome Printers
  34. path = /var/spool/samba
  35. printing = cups
  36. browseable = yes
  37. guest only = yes
  38. read only = no
  39. create mask = 0777
  40.  
  41. [print$]
  42. path = /var/lib/samba/printers
  43. browseable = yes
  44. read only = yes
  45. write list = admin root
  46.  
  47. --------------------------------------------------------------------
  48. CUPSD.CONF
  49.  
  50. #
  51. # "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $"
  52. #
  53. # Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
  54. # complete description of this file.
  55. #
  56.  
  57. # Log general information in error_log - change "warn" to "debug"
  58. # for troubleshooting...
  59. LogLevel warn
  60.  
  61. # Administrator user group...
  62. SystemGroup sys root
  63.  
  64.  
  65. # Only listen for connections from the local machine.
  66. #Listen localhost:631
  67. Port 631
  68. Listen /var/run/cups/cups.sock
  69.  
  70. # Show shared printers on the local network.
  71. Browsing On
  72. BrowseOrder allow,deny
  73. BrowseAllow all
  74. BrowseLocalProtocols CUPS dnssd
  75.  
  76. # Default authentication type, when authentication is required...
  77. DefaultAuthType Basic
  78.  
  79. # Restrict access to the server...
  80. <Location />
  81. Order allow,deny
  82. Allow all
  83. </Location>
  84.  
  85. # Restrict access to the admin pages...
  86. <Location /admin>
  87. Order allow,deny
  88. Allow all
  89. </Location>
  90.  
  91. # Restrict access to configuration files...
  92. <Location /admin/conf>
  93. AuthType Default
  94. Require user @SYSTEM
  95. Order allow,deny
  96. </Location>
  97.  
  98. # Set the default printer/job policies...
  99. <Policy default>
  100. # Job-related operations must be done by the owner or an administrator...
  101. <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>
  102. Require user @OWNER @SYSTEM
  103. Order deny,allow
  104. </Limit>
  105.  
  106. # All administration operations require an administrator to authenticate...
  107. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  108. AuthType Default
  109. Require user @SYSTEM
  110. Order deny,allow
  111. </Limit>
  112.  
  113. # All printer operations require a printer operator to authenticate...
  114. <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>
  115. #AuthType Default
  116. #Require user @SYSTEM
  117. Order deny,allow
  118. Allow all
  119. </Limit>
  120.  
  121. # Only the owner or an administrator can cancel or authenticate a job...
  122. <Limit Cancel-Job CUPS-Authenticate-Job>
  123. Require user @OWNER @SYSTEM
  124. Order deny,allow
  125. </Limit>
  126.  
  127. <Limit All>
  128. Order deny,allow
  129. </Limit>
  130. </Policy>
  131.  
  132. # Set the authenticated printer/job policies...
  133. <Policy authenticated>
  134. # Job-related operations must be done by the owner or an administrator...
  135. <Limit Create-Job Print-Job Print-URI>
  136. AuthType Default
  137. Order deny,allow
  138. </Limit>
  139.  
  140. <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>
  141. AuthType Default
  142. Require user @OWNER @SYSTEM
  143. Order deny,allow
  144. </Limit>
  145.  
  146. # All administration operations require an administrator to authenticate...
  147. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  148. AuthType Default
  149. Require user @SYSTEM
  150. Order deny,allow
  151. </Limit>
  152.  
  153. # All printer operations require a printer operator to authenticate...
  154. <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>
  155. AuthType Default
  156. Require user @SYSTEM
  157. Order deny,allow
  158. </Limit>
  159.  
  160. # Only the owner or an administrator can cancel or authenticate a job...
  161. <Limit Cancel-Job CUPS-Authenticate-Job>
  162. AuthType Default
  163. Require user @OWNER @SYSTEM
  164. Order deny,allow
  165. </Limit>
  166.  
  167. <Limit All>
  168. Order deny,allow
  169. </Limit>
  170. </Policy>
  171.  
  172. #
  173. # End of "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $".
  174. #
Advertisement
Add Comment
Please, Sign In to add comment