home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 2 / amigaformatcd02.iso / comms / netsoftware / amitcp_samba.lha / samba / lib / smb.conf
Encoding:
Text File  |  1995-09-27  |  5.3 KB  |  171 lines

  1. ; Configuration file for smbd.
  2. ; ============================================================================
  3. ; For the format of this file and comprehensive descriptions of all the
  4. ; configuration option, please refer to the man page for smb.conf(5).
  5. ;
  6. ; The following configuration should suit most systems for basic usage and 
  7. ; initial testing. It gives all clients access to their home directories and
  8. ; allows access to all printers specified in /etc/printcap.
  9. ;
  10. ; Things you need to check:
  11. ; --------------------------
  12. ;
  13. ; 1: Check the path to your printcap file. If you are using a system that does 
  14. ;    not use printcap (eg., Solaris), create a file containing lines of the 
  15. ;    form
  16. ;
  17. ;       printername|printername|printername|
  18. ;
  19. ;    where each "printername" is the name of a printer you want to provide 
  20. ;    access to. Then alter the "printcap =" entry to point to the new file.
  21. ;
  22. ;    If using Solaris, the following command will generate a suitable printcap
  23. ;    file:
  24. ;
  25. ;       lpc status | grep ":" | sed s/:/\|/ > myprintcap
  26. ;
  27. ; 2: Make sure the "print command" entry is correct for your system. This 
  28. ;    command should submit a file (represented by %s) to a printer 
  29. ;    (represented by %p) for printing and should REMOVE the file after 
  30. ;    printing.
  31. ;  
  32. ;    One most systems the default will be OK, as long as you get "printing ="
  33. ;    right.
  34. ;    
  35. ;    It is also a good idea to use an absolute path in the print command
  36. ;    as there is no guarantee the search path will be set correctly.
  37. ;
  38. ; 3: Make sure the "printing =" option is set correctly for your system.
  39. ;    Possible values are "sysv", "bsd" or "aix".
  40. ;
  41. ; 4: Make sure the "lpq command" entry is correct for your system. The default
  42. ;    may not work for you.
  43. ;
  44. ; 5: Make sure that the user specified in "guest account" exists. Typically
  45. ;    this will be a user that cannot log in and has minimal privileges.
  46. ;    Often the "nobody" account doesn't work (very system dependant).
  47. ;
  48. ; 6: You should consider the "security =" option. See a full description
  49. ;    in the main documentation and the smb.conf(5) manual page
  50. ;
  51. ; 7: Look at the "hosts allow" option, unless you want everyone on the internet
  52. ;    to be able to access your files.
  53. ;
  54. [global]
  55.    printing = bsd
  56.    printcap name = amitcp:samba/etc/printcap
  57.    load printers = yes
  58.   load printers = no
  59.    guest account = pcguest
  60. ;  This next option sets a separate log file for each client. Remove
  61. ;  it if you want a combined log file.
  62.    log file = amitcp:samba/var/log.%m
  63.  
  64. ;  You will need a world readable lock directory and "share modes=yes"
  65. ;  if you want to support the file sharing modes for multiple users
  66. ;  of the same files
  67. ;  lock directory = /usr/local/samba/var/locks
  68. ;  share modes = yes
  69.  
  70. [amiga]
  71.   path = work:
  72.   read only = no
  73.  
  74. [homes]
  75.    comment = Home Directories
  76.    browseable = no
  77.    read only = no
  78.    create mode = 0750
  79.  
  80. [printers]
  81.    comment = All Printers
  82.    browseable = no
  83.    printable = yes
  84.    public = no
  85.    writable = no
  86.    create mode = 0700
  87.  
  88. ; you might also want this one
  89. ; [tmp]
  90. ;   comment = Temporary file space
  91. ;   path = /tmp
  92. ;   read only = no
  93. ;   public = yes
  94.  
  95. ;
  96. ; Other examples. 
  97. ;
  98. ; A private printer, usable only by fred. Spool data will be placed in fred's
  99. ; home directory. Note that fred must have write access to the spool directory,
  100. ; wherever it is.
  101. ;[fredsprn]
  102. ;   comment = Fred's Printer
  103. ;   valid users = fred
  104. ;   path = /homes/fred
  105. ;   printer = freds_printer
  106. ;   public = no
  107. ;   writable = no
  108. ;   printable = yes
  109. ;
  110. ; A private directory, usable only by fred. Note that fred requires write
  111. ; access to the directory.
  112. ;[fredsdir]
  113. ;   comment = Fred's Service
  114. ;   path = /usr/somewhere/private
  115. ;   valid users = fred
  116. ;   public = no
  117. ;   writable = yes
  118. ;   printable = no
  119. ;
  120. ; A publicly accessible directory, but read only, except for people in
  121. ; the staff group
  122. ;[public]
  123. ;   comment = Public Stuff
  124. ;   path = /usr/somewhere/public
  125. ;   public = yes
  126. ;   writable = no
  127. ;   printable = no
  128. ;   write list = @staff
  129. ;
  130. ; a service which has a different directory for each machine that connects
  131. ; this allows you to tailor configurations to incoming machines. You could
  132. ; also use the %u option to tailor it by user name.
  133. ; The %m gets replaced with the machine name that is connecting.
  134. ;[pchome]
  135. ;  comment = PC Directories
  136. ;  path = /usr/pc/%m
  137. ;  public = no
  138. ;  writeable = yes
  139. ;
  140. ;
  141. ; A publicly accessible directory, read/write to all users. Note that all files
  142. ; created in the directory by users will be owned by the default user, so
  143. ; any user with access can delete any other user's files. Obviously this
  144. ; directory must be writable by the default user. Another user could of course
  145. ; be specified, in which case all files would be owned by that user instead.
  146. ;[public]
  147. ;   path = /usr/somewhere/else/public
  148. ;   public = yes
  149. ;   only guest = yes
  150. ;   writable = yes
  151. ;   printable = no
  152. ;
  153. ;
  154. ; The following two entries demonstrate how to share a directory so that two
  155. ; users can place files there that will be owned by the specific users. In this
  156. ; setup, the directory should be writable by both users and should have the
  157. ; sticky bit set on it to prevent abuse. Obviously this could be extended to
  158. ; as many users as required.
  159. ;[myshare]
  160. ;   comment = Mary's and Fred's stuff
  161. ;   path = /usr/somewhere/shared
  162. ;   valid users = mary fred
  163. ;   public = no
  164. ;   writable = yes
  165. ;   printable = no
  166. ;   create mask = 0765
  167.  
  168.  
  169.  
  170.  
  171.