Advertisement
Guest User

Untitled

a guest
Dec 1st, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.19 KB | None | 0 0
  1. #======================= Global Settings =======================
  2.  
  3. [global]
  4. unix extention = no
  5. ## Browsing/Identification ###
  6.  
  7. # Change this to the workgroup/NT-domain name your Samba server will part of
  8. workgroup = WORKGROUP
  9.  
  10. # server string is the equivalent of the NT Description field
  11. server string = %h server
  12.  
  13. # Windows Internet Name Serving Support Section:
  14. # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
  15. # wins support = no
  16.  
  17. # WINS Server - Tells the NMBD components of Samba to be a WINS Client
  18. # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
  19. ; wins server = w.x.y.z
  20.  
  21. # This will prevent nmbd to search for NetBIOS names through DNS.
  22. dns proxy = no
  23.  
  24. # What naming service and in what order should we use to resolve host names
  25. # to IP addresses
  26. ; name resolve order = lmhosts host wins bcast
  27.  
  28. #### Networking ####
  29.  
  30. # The specific set of interfaces / networks to bind to
  31. # This can be either the interface name or an IP address/netmask;
  32. # interface names are normally preferred
  33. ; interfaces = 127.0.0.0/8 eth0
  34.  
  35. # Only bind to the named interfaces and/or networks; you must use the
  36. # 'interfaces' option above to use this.
  37. # It is recommended that you enable this feature if your Samba machine is
  38. # not protected by a firewall or is a firewall itself. However, this
  39. # option cannot handle dynamic or non-broadcast interfaces correctly.
  40. ; bind interfaces only = yes
  41.  
  42.  
  43.  
  44. #### Debugging/Accounting ####
  45.  
  46. # This tells Samba to use a separate log file for each machine
  47. # that connects
  48. log file = /var/log/samba/log.%m
  49.  
  50. # Cap the size of the individual log files (in KiB).
  51. max log size = 1000
  52.  
  53. # If you want Samba to only log through syslog then set the following
  54. # parameter to 'yes'.
  55. # syslog only = no
  56.  
  57. # We want Samba to log a minimum amount of information to syslog. Everything
  58. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  59. # through syslog you should set the following parameter to something higher.
  60. syslog = 0
  61.  
  62. # Do something sensible when Samba crashes: mail the admin a backtrace
  63. panic action = /usr/share/samba/panic-action %d
  64.  
  65.  
  66. ####### Authentication #######
  67.  
  68. # "security = user" is always a good idea. This will require a Unix account
  69. # in this server for every user accessing the server. See
  70. # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
  71. # in the samba-doc package for details.
  72. security = user
  73.  
  74. # You may wish to use password encryption. See the section on
  75. # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
  76. encrypt passwords = true
  77.  
  78. # If you are using encrypted passwords, Samba will need to know what
  79. # password database type you are using.
  80. passdb backend = tdbsam
  81.  
  82. obey pam restrictions = yes
  83.  
  84. # This boolean parameter controls whether Samba attempts to sync the Unix
  85. # password with the SMB password when the encrypted SMB password in the
  86. # passdb is changed.
  87. unix password sync = yes
  88.  
  89. # For Unix password sync to work on a Debian GNU/Linux system, the following
  90. # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
  91. # sending the correct chat script for the passwd program in Debian Sarge).
  92. passwd program = /usr/bin/passwd %u
  93. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  94.  
  95. # This boolean controls whether PAM will be used for password changes
  96. # when requested by an SMB client instead of the program listed in
  97. # 'passwd program'. The default is 'no'.
  98. pam password change = yes
  99.  
  100. # This option controls how unsuccessful authentication attempts are mapped
  101. # to anonymous connections
  102. map to guest = bad user
  103.  
  104.  
  105.  
  106. # Allow users who've been granted usershare privileges to create
  107. # public shares, not just authenticated ones
  108. usershare allow guests = yes
  109.  
  110. #======================= Share Definitions =======================
  111.  
  112. [home]
  113. comment = Home Directories
  114. browseable = yes
  115.  
  116. # By default, the home directories are exported read-only. Change the
  117. # next parameter to 'no' if you want to be able to write to them.
  118. read only = no
  119.  
  120. # File creation mask is set to 0700 for security reasons. If you want to
  121. # create files with group=rw permissions, set next parameter to 0775.
  122. create mask = 0700
  123.  
  124. # Directory creation mask is set to 0700 for security reasons. If you want to
  125. # create dirs. with group=rw permissions, set next parameter to 0775.
  126. directory mask = 0700
  127.  
  128. # By default, \\server\username shares can be connected to by anyone
  129. # with access to the samba server.
  130. # The following parameter makes sure that only "username" can connect
  131. # to \\server\username
  132. # This might need tweaking when using external authentication schemes
  133. valid users = %S
  134.  
  135.  
  136. [backup]
  137. comment = backup folder for engraved files
  138. path = /media/main_backup/backup/
  139. valid users=@smbusers
  140. force group= smbusers
  141. create mask =0770
  142. directory mask = 0771
  143. writeable = yes
  144. browsable = yes
  145.  
  146.  
  147. [backup2]
  148. comment = sources and other files
  149. path = /media/essential_backup/
  150. valid users=@smbusers
  151. force group= smbusers
  152. create mask =0770
  153. directory mask = 0771
  154. writeable = yes
  155. browsable = yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement