Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.57 KB | None | 0 0
  1. #
  2. # Sample configuration file for the Samba suite for Debian GNU/Linux.
  3. #
  4. #
  5. # This is the main Samba configuration file. You should read the
  6. # smb.conf(5) manual page in order to understand the options listed
  7. # here. Samba has a huge number of configurable options most of which
  8. # are not shown in this example
  9. #
  10. # Some options that are often worth tuning have been included as
  11. # commented-out examples in this file.
  12. # - When such options are commented with ";", the proposed setting
  13. # differs from the default Samba behaviour
  14. # - When commented with "#", the proposed setting is the default
  15. # behaviour of Samba but the option is considered important
  16. # enough to be mentioned here
  17. #
  18. # NOTE: Whenever you modify this file you should run the command
  19. # "testparm" to check that you have not made any basic syntactic
  20. # errors.
  21. # A well-established practice is to name the original file
  22. # "smb.conf.master" and create the "real" config file with
  23. # testparm -s smb.conf.master >smb.conf
  24. # This minimizes the size of the really used smb.conf file
  25. # which, according to the Samba Team, impacts performance
  26. # However, use this with caution if your smb.conf file contains nested
  27. # "include" statements. See Debian bug #483187 for a case
  28. # where using a master file is not a good idea.
  29. #
  30.  
  31. #======================= Global Settings =======================
  32.  
  33. [global]
  34. dns proxy = no
  35. log file = /var/log/samba/log.%m
  36. server string = %h server
  37. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  38. obey pam restrictions = yes
  39. path = /home/sbrady/data/
  40. unix password sync = yes
  41. workgroup = WORKGROUP
  42. comment = data
  43. encrypt passwords = true
  44. syslog = 3
  45. panic action = /usr/share/samba/panic-action %d
  46. passwd program = /usr/bin/passwd %u
  47. passdb backend = tdbsam
  48. max log size = 1000
  49. pam password change = yes
  50. smb ports = 139
  51. socket address = 192.168.1.98
  52. socket options = TCP_NODELAY IPTOS_LOWDELAY
  53. oplocks = no
  54. level2 oplocks = no
  55. kernel oplocks = no
  56.  
  57. ## Browsing/Identification ###
  58.  
  59. # Change this to the workgroup/NT-domain name your Samba server will part of
  60.  
  61. # server string is the equivalent of the NT Description field
  62.  
  63. # Windows Internet Name Serving Support Section:
  64. # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
  65. # wins support = no
  66.  
  67. # WINS Server - Tells the NMBD components of Samba to be a WINS Client
  68. # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
  69. ; wins server = w.x.y.z
  70.  
  71. # This will prevent nmbd to search for NetBIOS names through DNS.
  72.  
  73. # What naming service and in what order should we use to resolve host names
  74. # to IP addresses
  75. ; name resolve order = lmhosts host wins bcast
  76.  
  77. #### Networking ####
  78.  
  79. # The specific set of interfaces / networks to bind to
  80. # This can be either the interface name or an IP address/netmask;
  81. # interface names are normally preferred
  82. ; interfaces = 127.0.0.0/8 eth0
  83.  
  84. # Only bind to the named interfaces and/or networks; you must use the
  85. # 'interfaces' option above to use this.
  86. # It is recommended that you enable this feature if your Samba machine is
  87. # not protected by a firewall or is a firewall itself. However, this
  88. # option cannot handle dynamic or non-broadcast interfaces correctly.
  89. ; bind interfaces only = yes
  90.  
  91.  
  92.  
  93. #### Debugging/Accounting ####
  94.  
  95. # This tells Samba to use a separate log file for each machine
  96. # that connects
  97.  
  98. # Cap the size of the individual log files (in KiB).
  99.  
  100. # If you want Samba to only log through syslog then set the following
  101. # parameter to 'yes'.
  102. # syslog only = no
  103.  
  104. # We want Samba to log a minimum amount of information to syslog. Everything
  105. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  106. # through syslog you should set the following parameter to something higher.
  107.  
  108. # Do something sensible when Samba crashes: mail the admin a backtrace
  109.  
  110.  
  111. ####### Authentication #######
  112.  
  113. # "security = user" is always a good idea. This will require a Unix account
  114. # in this server for every user accessing the server. See
  115. # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
  116. # in the samba-doc package for details.
  117. # security = user
  118.  
  119. # You may wish to use password encryption. See the section on
  120. # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
  121.  
  122. # If you are using encrypted passwords, Samba will need to know what
  123. # password database type you are using.
  124.  
  125.  
  126. # This boolean parameter controls whether Samba attempts to sync the Unix
  127. # password with the SMB password when the encrypted SMB password in the
  128. # passdb is changed.
  129.  
  130. # For Unix password sync to work on a Debian GNU/Linux system, the following
  131. # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
  132. # sending the correct chat script for the passwd program in Debian Sarge).
  133.  
  134. # This boolean controls whether PAM will be used for password changes
  135. # when requested by an SMB client instead of the program listed in
  136. # 'passwd program'. The default is 'no'.
  137.  
  138. ########## Domains ###########
  139.  
  140. # Is this machine able to authenticate users. Both PDC and BDC
  141. # must have this setting enabled. If you are the BDC you must
  142. # change the 'domain master' setting to no
  143. #
  144. ; domain logons = yes
  145. #
  146. # The following setting only takes effect if 'domain logons' is set
  147. # It specifies the location of the user's profile directory
  148. # from the client point of view)
  149. # The following required a [profiles] share to be setup on the
  150. # samba server (see below)
  151. ; logon path = \\%N\profiles\%U
  152. # Another common choice is storing the profile in the user's home directory
  153. # (this is Samba's default)
  154. # logon path = \\%N\%U\profile
  155.  
  156. # The following setting only takes effect if 'domain logons' is set
  157. # It specifies the location of a user's home directory (from the client
  158. # point of view)
  159. ; logon drive = H:
  160. # logon home = \\%N\%U
  161.  
  162. # The following setting only takes effect if 'domain logons' is set
  163. # It specifies the script to run during logon. The script must be stored
  164. # in the [netlogon] share
  165. # NOTE: Must be store in 'DOS' file format convention
  166. ; logon script = logon.cmd
  167.  
  168. # This allows Unix users to be created on the domain controller via the SAMR
  169. # RPC pipe. The example command creates a user account with a disabled Unix
  170. # password; please adapt to your needs
  171. ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
  172.  
  173. # This allows machine accounts to be created on the domain controller via the
  174. # SAMR RPC pipe.
  175. # The following assumes a "machines" group exists on the system
  176. ; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
  177.  
  178. # This allows Unix groups to be created on the domain controller via the SAMR
  179. # RPC pipe.
  180. ; add group script = /usr/sbin/addgroup --force-badname %g
  181.  
  182. ########## Printing ##########
  183.  
  184. # If you want to automatically load your printer list rather
  185. # than setting them up individually then you'll need this
  186. # load printers = yes
  187.  
  188. # lpr(ng) printing. You may wish to override the location of the
  189. # printcap file
  190. ; printing = bsd
  191. ; printcap name = /etc/printcap
  192.  
  193. # CUPS printing. See also the cupsaddsmb(8) manpage in the
  194. # cupsys-client package.
  195. ; printing = cups
  196. ; printcap name = cups
  197.  
  198. ############ Misc ############
  199.  
  200. # Using the following line enables you to customise your configuration
  201. # on a per machine basis. The %m gets replaced with the netbios name
  202. # of the machine that is connecting
  203. ; include = /home/samba/etc/smb.conf.%m
  204.  
  205. # Most people will find that this option gives better performance.
  206. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
  207. # for details
  208. # You may want to add the following on a Linux system:
  209. # SO_RCVBUF=8192 SO_SNDBUF=8192
  210. # socket options = TCP_NODELAY
  211.  
  212. # The following parameter is useful only if you have the linpopup package
  213. # installed. The samba maintainer and the linpopup maintainer are
  214. # working to ease installation and configuration of linpopup and samba.
  215. ; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
  216.  
  217. # Domain Master specifies Samba to be the Domain Master Browser. If this
  218. # machine will be configured as a BDC (a secondary logon server), you
  219. # must set this to 'no'; otherwise, the default behavior is recommended.
  220. # domain master = auto
  221.  
  222. # Some defaults for winbind (make sure you're not using the ranges
  223. # for something else.)
  224. ; idmap uid = 10000-20000
  225. ; idmap gid = 10000-20000
  226. ; template shell = /bin/bash
  227.  
  228. # The following was the default behaviour in sarge,
  229. # but samba upstream reverted the default because it might induce
  230. # performance issues in large organizations.
  231. # See Debian bug #368251 for some of the consequences of *not*
  232. # having this setting and smb.conf(5) for details.
  233. ; winbind enum groups = yes
  234. ; winbind enum users = yes
  235.  
  236. # Setup usershare options to enable non-root users to share folders
  237. # with the net usershare command.
  238.  
  239. # Maximum number of usershare. 0 (default) means that usershare is disabled.
  240. ; usershare max shares = 100
  241.  
  242. #======================= Share Definitions =======================
  243.  
  244.  
  245.  
  246.  
  247.  
  248. [data]
  249. valid users = sbrady
  250. writeable = yes
  251. user = sbrady
  252. public = yes
  253. path = //home/sbrady/data/
  254. write list = sbrady
  255. socket options = TCP_NODELAY IPTOS_LOWDELAY
  256. read raw = yes
  257. write raw = yes
  258. max xmit = 65535
  259. load printers = no
  260. show add printer wizard = no
  261. printing = none
  262. printcap name = /dev/null
  263. disable spoolss = yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement