proliferation of SAMBA links in W2K

Ana Esparza Keys aesparza at us.ibm.com
Thu Jan 25 01:17:51 GMT 2001


Hi!
I'm pretty new to using Samba and have come accross a puzzling problem that
I cannot figure out with the documentation or Samba books... please forgive
me if this has been discussed before in this forum, I have not seen such
discussion.
We have a customer that uses a script that basically  maps to three samba
shares, then uses the substitute command repeatedly.  Every time a subst
command is issued, a new Samba link is created instead of using an existing
link.  As a result this customer may end up with 20 or more links (more
links are also created when using the command dir, for example) and his
workstation freezes.  This only happens from a Windows 2000 workstation and
so far only when running this script.  The version of Samba we are running
is 2.0.7 ... has ANYONE seen this problem before??  Please help if
possible.  I'm including the customer's script and our smb.conf file.
Please let me know if there is other information I should include...
-- Thank you very much!

Anabel

Customer script

@echo off > NUL:
 rem ######################################################## > NUL:
 rem            SMB Drive Map Setup                        > NUL:
 rem                                                               > NUL:
 rem            Created:    May 31 2000                       > NUL:
 rem                                                              > NUL:
 rem ######################################################## > NUL:
 rem:
 rem:  ---------------------- User DFS home > NUL:
 echo set H:
 net use /d H: > NUL:
 net use H: \\snjw9501.sanjose.ibm.com\homes   /PERSISTENT:yes
 rem:
 rem:  ---------------------- San Jose /:/fs > NUL:
 echo set U:
 net use /d U: > NUL:
 net use U: \\snjw9501.sanjose.ibm.com\sanjose /PERSISTENT:yes
 rem:
 rem:  ---------------------- Sites /:/ > NUL:
 echo set V:
 net use /d V: > NUL:
 net use V: \\snjw9501.sanjose.ibm.com\dfs     /PERSISTENT:yes
 rem:
 rem:  ---------------------- allow time for user's SMB connections > NUL:
 echo Synchronizing System Time with DCE Cell . . .
 net time \\snjw9501.sanjose.ibm.com /set /yes
 rem:
 echo After your network connections are established,
 echo (to set up your drive map for M, N, P, T)
 pause
 rem:
 rem:  ---------------------- MDAdfs > NUL:
 subst /d M: > NUL:
 subst M: U:\tools\mda
 echo set M:
 rem:
 rem:  ---------------------- User's DFS $HOME/pc directory > NUL:
 subst /d N: > NUL:
 subst N: U:\tools\mda\data\pc\team\u\
 echo set N:
 rem:
 rem:  ---------------------- Project data > NUL:
 subst /d P: > NUL:
 subst P: U:\tools\mda\data\pc > NUL:
 :echo_team
 echo set P:
 rem:
 rem:  ---------------------- MDA PC software > NUL:
 subst /d T: > NUL:
 subst T: U:\tools\mda\local\pc > NUL:
 echo set T:
 rem:

Configuration file (smb.conf)

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not many any basic syntactic errors.
#
#======================= Global Settings
=====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
; workgroup = SUPPORT
; debug level = 10
; syslog = 0
   workgroup = snjsmb
   netbios name = snjw9501

# server string is the equivalent of the NT Description field
   server string = San Jose test samba 2.0.7

# Uncomment this if you want a guest account, you must add this to
/etc/passwd
# otherwise the user "nobody" is used
;  guest account = pcguest
   guest account = nobody

# this tells Samba to use a separate log file for each machine
# that connects
   log file = /usr/local/samba/var/smbd/%m.log
   log level = 1

# Put a capping on the size of the log files (in Kb).
   max log size = 1024

# Security mode. Most people will want user level security. See
# security_level.txt for details.
    security = user
;   security = share
;   security = server

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
;  password level = 8

    password level = 0

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
; encrypt passwords = yes
    encrypt passwords = no

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
    include = /usr/local/samba/lib/smb.conf.%m

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
   socket options = TCP_NODELAY SO_KEEPALIVE

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
;   local master = no
# *** changed local master to "yes" ***
    local master = yes

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
    os level = 254

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
    domain master = yes

# Preferred Master causes Samba to force a local browser election on
startup
# and gives it a slightly higher chance of winning the election
    preferred master = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
;   dns proxy = yes
    dns proxy = no

# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
   preserve case = yes
   short preserve case = yes
# Default Global create
    create mode = 0660
    directory mode = 0770

# Default case is normally upper case for all DOS files
   default case = lower
# Be very careful with case sensitivity - it can break things!
   case sensitive = no
   client code page = 437
   hide dot files = yes

#============================ Share Definitions
==============================

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
    comment = All Printers
    path = /usr/spool/samba
    path = /tmp
    browseable = yes
# Set public = yes to allow user 'guest account' to print
;   guest ok = yes
    writable = no
    printable = yes

# This one is useful for people to share files
[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes

[ipc$]
   path = /tmp
   public = yes
   writable = no

[homes]
    comment = Home Directories
    path = /.../ssd.sanjose.ibm.com/fs/home/%u
    browseable = no
    writable = yes
    locking = True
    oplocks = False
    fake oplocks = False
    strict locking = False

[sanjose]
   comment = San Jose DFS Cell
   path = /.../ssd.sanjose.ibm.com/fs/
   browsable = yes
   writable = yes

[dfs]
   comment = DFS Root (San Jose authentication)
   path = /.../
   browsable = yes
   writable = yes







More information about the samba mailing list