Alex Forrow
2004-Jan-24 17:27 UTC
[Samba] Dis-used ip creating errors in logs & slow XP browsing
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] nmbd/nmbd_browsesync.c:get_domain_master_name_node_status_fail(485) get_domain_master_name_node_status_fail: Doing a node status request to the domain master browser at IP 192.168.0.69 failed. Cannot get workgroup name. The ip 192.168.0.69 was a second IP for the box samba is running on which I removed a few weeks back. I think samba thinks that 192.168.0.69 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 ------ [global] ;basic server settings workgroup = nova netbios name = Kryten server string = Kryten socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 ;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 = 127.0.0.1 192.168.0.0/255.255.255.0 ;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 *passwd:*all*authentication*tokens*updated*successfully* ;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 === [homes] comment = Home Directories browseable = no writeable = yes [profiles] path = /home/samba/profiles writeable = yes ; browseable = no create mask = 0600 directory mask = 0700 [netlogon] comment = Network Logon Service path = /home/samba/netlogon read only = yes browseable = no write list = @domainadmins [admin] comment = Admin stuff path = /home/samba/admin valid users = @domainadmins writeable = yes [phatstore] comment = Phatstore for phat stuff path = /mnt/phatstore valid users = @domainusers writeable = yes [upload] 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' & Thanks, Alex Forrow