[Samba] Dis-used ip creating errors in logs & slow XP browsing

Alex Forrow alex at forrow.com
Sat Jan 24 17:26:30 GMT 2004

I run samba 3.0.1 on a Redhat 9 box. Everything is fine, there are just
two minor points which I would like to fix. Firstly, I am seeing the
following in my logs. It occurs every few hours in
/var/log/samba/log.nmbd and every 10 minutes or so in /var/log/messages:

[2004/01/24 01:17:04, 0]
  Doing a node status request to the domain master browser at IP failed.
  Cannot get workgroup name.

The ip was a second IP for the box samba is running on
which I removed a few weeks back. I think samba thinks that
still exists and its trying to use it. I just can't see where it is
getting this ip from as there is no trace of it in /etc, which includes
my smb conf files.

Any ideas for stopping samba doing this?

On a different point, I am finding that browsing the samba server from
Windows XP slow. Getting the list of shares is fast (eg. Typing \\kryten
in run), but when you try to initialize a share by double clicking it,
there is a delay of up to 10 seconds. Once it has opened, browsing
inside is fast. This problem does not occur in Windows 2000 (SP 4).
Interestingly, one of the shares has an 'preexec' which sends the
computer connecting a 'net send' style message. When connecting to this
shares, the message appears instantly, but explorer still waits for the
10 seconds before the contents appear.

My configuration listing:
------ smb.conf ------
   ;basic server settings
   workgroup = nova
   netbios name = Kryten
   server string = Kryten

   ;PDC and master browser settings
   os level = 64
   preferred master = yes
   local master = yes
   domain master = yes
   domain logons = yes
   wins support = yes

   ;security and logging settings
   security = user
   encrypt passwords = yes
   log file = /var/log/samba/individual/log.%m
   log level = 2
   max log size = 50
   hosts allow =

   ;user profiles and home directory
   logon home = \\%L\%U\
   logon drive = U:
   logon path = \\%L\profiles\%U

   ;Password syncing
   unix password sync = Yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*password* %n\n *Retype*new*password* %n\n

   ;Alex Updates
   admin users = @domainadmins
   username map = /etc/samba/smbusers
   map to guest = bad user
   guest account = ftp

   add user script = /usr/sbin/useradd -g domainusers -d /dev/null -M -c
"Domain User" -s /bin/false %u
   delete user script = /usr/sbin/userdel %u
   add group script = /usr/sbin/groupadd -r %g
   delete group script = /usr/sbin/groupdel %g
   add user to group script = /usr/bin/gpasswd -a %u %g
   delete user from group script = /usr/bin/gpasswd -d %u %g
   set primary group script = /usr/sbin/usermod -g '%g' '%u'

   panic action = echo This is an automated message: The samba server on
kryten has crashed. Domain controller down | smbclient -M shuttle
# ==== shares ====

  comment = Home Directories
  browseable = no
  writeable = yes

  path = /home/samba/profiles
  writeable = yes
;  browseable = no
  create mask = 0600
  directory mask = 0700

  comment = Network Logon Service
  path = /home/samba/netlogon
  read only = yes
  browseable = no
  write list = @domainadmins
  comment = Admin stuff
  path = /home/samba/admin
  valid users = @domainadmins
  writeable = yes
  comment = Phatstore for phat stuff
  path = /mnt/phatstore
  valid users = @domainusers
  writeable = yes
  comment = RW for all
  path = /mnt/phatstore/upload
  writable = yes
  public = yes
  preexec = csh -c 'echo Welcome to upload on kryten. Everyone has rw
access | smbclient -M %m -I %I' &


Alex Forrow

More information about the samba mailing list