Advertisement
Guest User

samba errors

a guest
Mar 21st, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.91 KB | None | 0 0
  1. [Files Central]
  2. guest ok = no
  3. force user = kwagga
  4. writeable = yes
  5. writable = yes
  6. path = /home/kwagga/Download Central
  7. #
  8. # restrict ports to avoid
  9. # "getpeername failed. Error was Transport endpoint is not connected" and
  10. # "Error writing 4 bytes to client. -1. (Transport endpoint is not connected)"
  11. # errors from port 139 legacy mode - PDC may need 139 open
  12. # smb ports = 445
  13. #
  14. #
  15. # Sample configuration file for the Samba suite for Debian GNU/Linux.
  16. #
  17. #
  18. # This is the main Samba configuration file. You should read the
  19. # smb.conf(5) manual page in order to understand the options listed
  20. # here. Samba has a huge number of configurable options most of which
  21. # are not shown in this example
  22. #
  23. # Some options that are often worth tuning have been included as
  24. # commented-out examples in this file.
  25. # - When such options are commented with ";", the proposed setting
  26. # differs from the default Samba behaviour
  27. # - When commented with "#", the proposed setting is the default
  28. # behaviour of Samba but the option is considered important
  29. # enough to be mentioned here
  30. #
  31. # NOTE: Whenever you modify this file you should run the command
  32. # "testparm" to check that you have not made any basic syntactic
  33. # errors.
  34. # A well-established practice is to name the original file
  35. # "smb.conf.master" and create the "real" config file with
  36. # testparm -s smb.conf.master >smb.conf
  37. # This minimizes the size of the really used smb.conf file
  38. # which, according to the Samba Team, impacts performance
  39. # However, use this with caution if your smb.conf file contains nested
  40. # "include" statements. See Debian bug #483187 for a case
  41. # where using a master file is not a good idea.
  42. #
  43.  
  44. #======================= Global Settings =======================
  45.  
  46. [global]
  47.  
  48. ## Browsing/Identification ###
  49.  
  50. # Change this to the workgroup/NT-domain name your Samba server will part of
  51. workgroup = WORKGROUP
  52.  
  53. # server string is the equivalent of the NT Description field
  54. server string = %h server (Samba, Ubuntu)
  55.  
  56. # Windows Internet Name Serving Support Section:
  57. # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
  58. # wins support = no
  59.  
  60. # WINS Server - Tells the NMBD components of Samba to be a WINS Client
  61. # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
  62. ; wins server = w.x.y.z
  63.  
  64. # This will prevent nmbd to search for NetBIOS names through DNS.
  65. dns proxy = no
  66.  
  67. # What naming service and in what order should we use to resolve host names
  68. # to IP addresses
  69. ; name resolve order = lmhosts host wins bcast
  70.  
  71. #### Networking ####
  72.  
  73. # The specific set of interfaces / networks to bind to
  74. # This can be either the interface name or an IP address/netmask;
  75. # interface names are normally preferred
  76. ; interfaces = 127.0.0.0/8 eth0
  77.  
  78. # Only bind to the named interfaces and/or networks; you must use the
  79. # 'interfaces' option above to use this.
  80. # It is recommended that you enable this feature if your Samba machine is
  81. # not protected by a firewall or is a firewall itself. However, this
  82. # option cannot handle dynamic or non-broadcast interfaces correctly.
  83. ; bind interfaces only = yes
  84.  
  85.  
  86.  
  87. #### Debugging/Accounting ####
  88.  
  89. # This tells Samba to use a separate log file for each machine
  90. # that connects
  91. log file = /var/log/samba/log.%m
  92.  
  93. # Cap the size of the individual log files (in KiB).
  94. max log size = 1000
  95.  
  96. # If you want Samba to only log through syslog then set the following
  97. # parameter to 'yes'.
  98. # syslog only = no
  99.  
  100. # We want Samba to log a minimum amount of information to syslog. Everything
  101. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  102. # through syslog you should set the following parameter to something higher.
  103. syslog = 0
  104.  
  105. # Do something sensible when Samba crashes: mail the admin a backtrace
  106. panic action = /usr/share/samba/panic-action %d
  107.  
  108.  
  109. ####### Authentication #######
  110.  
  111. # "security = user" is always a good idea. This will require a Unix account
  112. # in this server for every user accessing the server. See
  113. # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
  114. # in the samba-doc package for details.
  115. # security = user
  116.  
  117. # You may wish to use password encryption. See the section on
  118. # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
  119. encrypt passwords = true
  120.  
  121. # If you are using encrypted passwords, Samba will need to know what
  122. # password database type you are using.
  123. passdb backend = tdbsam
  124.  
  125. obey pam restrictions = yes
  126.  
  127. # This boolean parameter controls whether Samba attempts to sync the Unix
  128. # password with the SMB password when the encrypted SMB password in the
  129. # passdb is changed.
  130. unix password sync = yes
  131.  
  132. # For Unix password sync to work on a Debian GNU/Linux system, the following
  133. # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
  134. # sending the correct chat script for the passwd program in Debian Sarge).
  135. passwd program = /usr/bin/passwd %u
  136. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  137.  
  138. # This boolean controls whether PAM will be used for password changes
  139. # when requested by an SMB client instead of the program listed in
  140. # 'passwd program'. The default is 'no'.
  141. pam password change = yes
  142.  
  143. # This option controls how unsuccessful authentication attempts are mapped
  144. # to anonymous connections
  145. map to guest = bad user
  146.  
  147. ########## Domains ###########
  148.  
  149. # Is this machine able to authenticate users. Both PDC and BDC
  150. # must have this setting enabled. If you are the BDC you must
  151. # change the 'domain master' setting to no
  152. #
  153. ; domain logons = yes
  154. #
  155. # The following setting only takes effect if 'domain logons' is set
  156. # It specifies the location of the user's profile directory
  157. # from the client point of view)
  158. # The following required a [profiles] share to be setup on the
  159. # samba server (see below)
  160. ; logon path = \\%N\profiles\%U
  161. # Another common choice is storing the profile in the user's home directory
  162. # (this is Samba's default)
  163. # logon path = \\%N\%U\profile
  164.  
  165. # The following setting only takes effect if 'domain logons' is set
  166. # It specifies the location of a user's home directory (from the client
  167. # point of view)
  168. ; logon drive = H:
  169. # logon home = \\%N\%U
  170.  
  171. # The following setting only takes effect if 'domain logons' is set
  172. # It specifies the script to run during logon. The script must be stored
  173. # in the [netlogon] share
  174. # NOTE: Must be store in 'DOS' file format convention
  175. ; logon script = logon.cmd
  176.  
  177. # This allows Unix users to be created on the domain controller via the SAMR
  178. # RPC pipe. The example command creates a user account with a disabled Unix
  179. # password; please adapt to your needs
  180. ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
  181.  
  182. # This allows machine accounts to be created on the domain controller via the
  183. # SAMR RPC pipe.
  184. # The following assumes a "machines" group exists on the system
  185. ; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
  186.  
  187. # This allows Unix groups to be created on the domain controller via the SAMR
  188. # RPC pipe.
  189. ; add group script = /usr/sbin/addgroup --force-badname %g
  190.  
  191. ########## Printing ##########
  192.  
  193. # If you want to automatically load your printer list rather
  194. # than setting them up individually then you'll need this
  195. # load printers = yes
  196.  
  197. # lpr(ng) printing. You may wish to override the location of the
  198. # printcap file
  199. ; printing = bsd
  200. ; printcap name = /etc/printcap
  201.  
  202. # CUPS printing. See also the cupsaddsmb(8) manpage in the
  203. # cupsys-client package.
  204. ; printing = cups
  205. ; printcap name = cups
  206.  
  207. ############ Misc ############
  208.  
  209. # Using the following line enables you to customise your configuration
  210. # on a per machine basis. The %m gets replaced with the netbios name
  211. # of the machine that is connecting
  212. ; include = /home/samba/etc/smb.conf.%m
  213.  
  214. # Most people will find that this option gives better performance.
  215. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
  216. # for details
  217. # You may want to add the following on a Linux system:
  218. # SO_RCVBUF=8192 SO_SNDBUF=8192
  219. # socket options = TCP_NODELAY
  220.  
  221. # The following parameter is useful only if you have the linpopup package
  222. # installed. The samba maintainer and the linpopup maintainer are
  223. # working to ease installation and configuration of linpopup and samba.
  224. ; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
  225.  
  226. # Domain Master specifies Samba to be the Domain Master Browser. If this
  227. # machine will be configured as a BDC (a secondary logon server), you
  228. # must set this to 'no'; otherwise, the default behavior is recommended.
  229. # domain master = auto
  230.  
  231. # Some defaults for winbind (make sure you're not using the ranges
  232. # for something else.)
  233. ; idmap uid = 10000-20000
  234. ; idmap gid = 10000-20000
  235. ; template shell = /bin/bash
  236.  
  237. # The following was the default behaviour in sarge,
  238. # but samba upstream reverted the default because it might induce
  239. # performance issues in large organizations.
  240. # See Debian bug #368251 for some of the consequences of *not*
  241. # having this setting and smb.conf(5) for details.
  242. ; winbind enum groups = yes
  243. ; winbind enum users = yes
  244.  
  245. # Setup usershare options to enable non-root users to share folders
  246. # with the net usershare command.
  247.  
  248. # Maximum number of usershare. 0 (default) means that usershare is disabled.
  249. ; usershare max shares = 100
  250.  
  251. # Allow users who've been granted usershare privileges to create
  252. # public shares, not just authenticated ones
  253. usershare allow guests = yes
  254.  
  255. #======================= Share Definitions =======================
  256.  
  257. # Un-comment the following (and tweak the other settings below to suit)
  258. # to enable the default home directory shares. This will share each
  259. # user's home director as \\server\username
  260. ;[homes]
  261. ; comment = Home Directories
  262. ; browseable = no
  263.  
  264. # By default, the home directories are exported read-only. Change the
  265. # next parameter to 'no' if you want to be able to write to them.
  266. ; read only = yes
  267.  
  268. # File creation mask is set to 0700 for security reasons. If you want to
  269. # create files with group=rw permissions, set next parameter to 0775.
  270. ; create mask = 0700
  271.  
  272. # Directory creation mask is set to 0700 for security reasons. If you want to
  273. # create dirs. with group=rw permissions, set next parameter to 0775.
  274. ; directory mask = 0700
  275.  
  276. # By default, \\server\username shares can be connected to by anyone
  277. # with access to the samba server. Un-comment the following parameter
  278. # to make sure that only "username" can connect to \\server\username
  279. # The following parameter makes sure that only "username" can connect
  280. #
  281. # This might need tweaking when using external authentication schemes
  282. ; valid users = %S
  283.  
  284. # Un-comment the following and create the netlogon directory for Domain Logons
  285. # (you need to configure Samba to act as a domain controller too.)
  286. ;[netlogon]
  287. ; comment = Network Logon Service
  288. ; path = /home/samba/netlogon
  289. ; guest ok = yes
  290. ; read only = yes
  291. ; share modes = no
  292.  
  293. # Un-comment the following and create the profiles directory to store
  294. # users profiles (see the "logon path" option above)
  295. # (you need to configure Samba to act as a domain controller too.)
  296. # The path below should be writable by all users so that their
  297. # profile directory may be created the first time they log on
  298. ;[profiles]
  299. ; comment = Users profiles
  300. ; path = /home/samba/profiles
  301. ; guest ok = no
  302. ; browseable = no
  303. ; create mask = 0600
  304. ; directory mask = 0700
  305.  
  306. [printers]
  307. comment = All Printers
  308. browseable = no
  309. path = /var/spool/samba
  310. printable = yes
  311. guest ok = no
  312. read only = yes
  313. create mask = 0700
  314.  
  315. # Windows clients look for this share name as a source of downloadable
  316. # printer drivers
  317. [print$]
  318. comment = Printer Drivers
  319. path = /var/lib/samba/printers
  320. browseable = yes
  321. read only = yes
  322. guest ok = no
  323. # Uncomment to allow remote administration of Windows print drivers.
  324. # You may need to replace 'lpadmin' with the name of the group your
  325. # admin users are members of.
  326. # Please note that you also need to set appropriate Unix permissions
  327. # to the drivers directory for these users to have write rights in it
  328. ; write list = root, @lpadmin
  329.  
  330. # A sample share for sharing your CD-ROM with others.
  331. ;[cdrom]
  332. ; comment = Samba server's CD-ROM
  333. ; read only = yes
  334. ; locking = no
  335. ; path = /cdrom
  336. ; guest ok = yes
  337.  
  338. # The next two parameters show how to auto-mount a CD-ROM when the
  339. # cdrom share is accesed. For this to work /etc/fstab must contain
  340. # an entry like this:
  341. #
  342. # /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
  343. #
  344. # The CD-ROM gets unmounted automatically after the connection to the
  345. #
  346. # If you don't want to use auto-mounting/unmounting make sure the CD
  347. # is mounted on /cdrom
  348. #
  349. ; preexec = /bin/mount /cdrom
  350. ; postexec = /bin/umount /cdrom
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement