Guest User

Untitled

a guest
Apr 30th, 2013
45
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [global]
  2. ## Browsing/Identification ###
  3.  
  4. #unix extensions = yes
  5. mangled names = no
  6. # Change this to the workgroup/NT-domain name your Samba server will part of
  7. workgroup = WG
  8.  
  9. # server string is the equivalent of the NT Description field
  10. server string = Dirks Receiver
  11. netbios name = %h
  12.  
  13. socket options = TCP_NODELAY
  14.  
  15. #### Debugging/Accounting ####
  16.  
  17. # This tells Samba to use a separate log file for each machine
  18. # that connects
  19. log file = /var/log/samba/log.%m
  20.  
  21. # Cap the size of the individual log files (in KiB).
  22. max log size = 1000
  23.  
  24. log level = 2
  25.  
  26. # We want Samba to log a minimum amount of information to syslog. Everything
  27. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  28. # through syslog you should set the following parameter to something higher.
  29. syslog = 0
  30.  
  31. ####### Authentication #######
  32. # "security = user" is always a good idea. This will require a Unix account
  33. # in this server for every user accessing the server. See
  34. # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
  35. # in the samba-doc package for details.
  36. security = user
  37.  
  38. # You may wish to use password encryption.  See the section on
  39. # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
  40. encrypt passwords = true
  41.  
  42. # If you are using encrypted passwords, Samba will need to know what
  43. # password database type you are using.  
  44. passdb backend = smbpasswd
  45. #obey pam restrictions = yes
  46.  
  47. # This boolean parameter controls whether Samba attempts to sync the Unix
  48. # password with the SMB password when the encrypted SMB password in the
  49. # passdb is changed.
  50. #unix password sync = yes
  51. #pam password change = yes
  52.  
  53. # For Unix password sync to work on a Debian GNU/Linux system, the following
  54. # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
  55. # sending the correct chat script for the passwd program in Debian Sarge).
  56. #passwd program = /usr/bin/passwd %u
  57. #passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  58. #log level = 100
  59. #passwd chat debug = Yes
  60.  
  61. # Is this machine able to authenticate users. Both PDC and BDC
  62. # must have this setting enabled. If you are the BDC you must
  63. # change the 'domain master' setting to no
  64. #
  65. #domain logons = yes
  66.  
  67. ############ Misc ############
  68.  
  69. # Most people will find that this option gives better performance.
  70. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
  71. # for details
  72. # You may want to add the following on a Linux system:
  73. #         SO_RCVBUF=8192 SO_SNDBUF=8192
  74. socket options = TCP_NODELAY
  75.  
  76. # The following parameter is useful only if you have the linpopup package
  77. # installed. The samba maintainer and the linpopup maintainer are
  78. # working to ease installation and configuration of linpopup and samba.
  79. message command = /bin/sh -c '/usr/bin/svdrpsend mesg %f on %m: `cat %s`; rm %s' &
  80.  
  81. unix charset = UTF-8
  82. #unix extensions = yes
  83. deadtime = 5
  84. username map = /etc/samba/user.map
  85.  
  86. show add printer wizard = no
  87.  
  88. guest account = nobody
  89. map to guest = Bad User
  90.  
  91. [dirk]
  92. comment = Nutzerverzeichnis
  93. browseable = yes
  94.  
  95. # By default, the home directories are exported read-only. Change the
  96. # next parameter to 'no' if you want to be able to write to them.
  97. read only = no
  98.  
  99. # File creation mask is set to 0700 for security reasons. If you want to
  100. # create files with group=rw permissions, set next parameter to 0775.
  101. #create mask = 0700
  102.  
  103. # Directory creation mask is set to 0700 for security reasons. If you want to
  104. # create dirs. with group=rw permissions, set next parameter to 0775.
  105. #directory mask = 0700
  106.  
  107. # By default, \\server\username shares can be connected to by anyone
  108. # with access to the samba server.
  109. # The following parameter makes sure that only "username" can connect
  110. # to \\server\username
  111. # This might need tweaking when using external authentication schemes
  112. valid users = dirk
  113. path = home/dirk
  114.  
  115. security mask = 0777
  116. force security mode = 0
  117. directory security mask = 0777
  118. force directory security mode = 0
  119. store dos attributes = Yes
  120.  
  121. [vollzugriff]
  122. comment = Root Zugriff
  123. browseable = yes
  124. read only = no
  125. path = /
  126. force group = root
  127. force user = root
  128. directory mode = 770
  129. create mode = 660
  130. valid users = dirk
  131. dos filetime resolution = no
  132.  
  133. [tausch]
  134. comment = Tauschverzeichnis
  135. browseable = yes
  136. read only = no
  137. guest ok = yes
  138. path = /srv/TAUSCH
  139. directory mode = 777
  140. force directory mode = 1000
  141. create mode = 666
  142.  
  143. [videos]
  144. comment = TV Aufnahmen und Videos
  145. browseable = yes
  146. read only = yes
  147. guest ok = yes
  148. path = /srv/VIDEO
  149. force group = media
  150. force user = nobody
  151.  
  152. [audio]
  153. comment = Audiodateien
  154. browseable = yes
  155. read only = yes
  156. guest ok = yes
  157. path = /srv/AUDIO
  158. force group = media
  159. force user = nobody
  160.  
  161. [pictures]
  162. comment = Bilder
  163. browseable = yes
  164. read only = yes
  165. guest ok = yes
  166. path = /srv/PICTURE
  167. force group = media
  168. force user = nobody
RAW Paste Data