joydeep at infoservices.in
2009-Jul-17 10:40 UTC
[Samba] Strange samba problem with Win XP
Hello list, I don't know what is breaking my samba box but I am really very worried and confused !! My samba server has no problem with linux client. "smbclient -L <samba IP> -U <samba user>" runs well. No problem at all. But whenever I try to access the shares from Win-XP it reports that "path not found". And after repeatedly trying the same Win-XP managed to get the share after waiting a long time. But it lost the shares after say 15/20 min. More over a mapped samba drive Immediately disconnected after restart !!! I am really really confused. All Linux clients are running so well but Win-XP. I have checked the nmbd.log and found errors like ``````````````````` process_node_status_request: status request for name ENTERPRISE<1b> from IP 192.168.1.41 on subnet UNICAST_SUBNET - name not found. [2009/07/17 15:43:03, 1] nmbd/nmbd_incomingrequests.c:process_node_status_request(328) process_node_status_request: status request for name ENTERPRISE<1b> from IP 192.168.1.41 on subnet UNICAST_SUBNET - name not found. [2009/07/17 15:43:03, 1] nmbd/nmbd_incomingrequests.c:process_node_status_request(328) process_node_status_request: status request for name ENTERPRISE<1b> from IP 192.168.1.41 on subnet UNICAST_SUBNET - name not found. [2009/07/17 15:43:08, 0] nmbd/nmbd_browsesync.c:domain_master_node_status_fail(248) domain_master_node_status_fail: Doing a node status request to the domain master browser for workgroup ENTERPRISE at IP 192.168.1.41 failed. Cannot sync browser lists ``````````````````````````````````````` Here are some tests I have already done ````````````` #nmblookup -M -- - added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0 added interface ip=192.168.1.41 bcast=192.168.1.255 nmask=255.255.255.0 querying __MSBROWSE__ on 127.255.255.255 Got a positive name query response from 127.0.0.1 ( 192.168.1.41 ) 192.168.1.41 __MSBROWSE__<01> ````````````````````````` ```````````````````` nmblookup -A 192.168.1.41 added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0 added interface ip=192.168.1.41 bcast=192.168.1.255 nmask=255.255.255.0 Looking up status of 192.168.1.41 CLARKCONNECT <00> - H <ACTIVE> CLARKCONNECT <03> - H <ACTIVE> CLARKCONNECT <20> - H <ACTIVE> ..__MSBROWSE__. <01> - <GROUP> H <ACTIVE> ENTERPRISE <1d> - H <ACTIVE> ENTERPRISE <1e> - <GROUP> H <ACTIVE> ENTERPRISE <00> - <GROUP> H <ACTIVE> MAC Address = 00-00-00-00-00-00 `````````````````````````````` "smbtree -d=3 --no-pass" is also showing all the shares. Here is my smb.conf `````````````````````````` [global] unix password sync = yes force create mode =0774 utmp = no ####smb ports = 139 #####domain logons = no domain master = no os level = 65 local master = yes preferred master = yes passwd program = /usr/sbin/userpasswd %u passwd chat = *password:* %n\n *password:* %n\n *successfully.* netbios name = Clarkconnect workgroup = Enterprise server string = ClarkConnect samba bind interfaces only = yes interfaces = lo eth0 eth1 use client driver = yes printcap name = /etc/printcap load printers = yes security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd force create mode =0777 force directory mode =0777 force user = apache deadtime = 10 debug level = 2 syslog = false socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = no utmp = yes max xmit = 4096 oplocks = yes read raw = yes write raw = yes getwd cache = yes # For low-risk security reasons on Win2000/WinXP networks (no Win98) # restrict anonymous = 2 # WINS / VPN # ---------- wins support = yes name resolve order = wins lmhosts hosts bcast # Other handy directives # ---------------------- # preferred master # remote announce # remote browse sync # Authconfig adds these #---------------------- idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 template shell = /bin/false winbind use default domain = no # PDC #---- add machine script = /usr/sbin/useradd -d /dev/null -g samba-clients -s /bin/false -M %u [printers] #printing = cups path = /tmp browseable = yes printable = yes public = yes guest ok = yes [shared] comment = Public Shared Folder path = /home/shared browseable = yes guest only = yes writable = yes public = yes #### for www folder with RW ######## [WWW] comment = WWW path = /var/www/html browseable = yes guest only = no writable = yes public = no force create mode =0777 force directory mode =0777 force user = apache deadtime = 10 ```````````````````` testparm does not show any error. Please enlighten me what is wrong/missing here. eagerly waiting for a kind response. Thanks ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
>Hello list,>I don't know what is breaking my samba box but I am really very >worried and confused !! My samba server has no problem with linux >client. "smbclient -L <samba IP> -U <samba user>" runs well. No >problem at all. But whenever I try to access the shares from Win-XP it>reports that "path not found". And after repeatedly trying the same >Win-XP managed to get the share after waiting a long time. But it lost>the shares after say 15/20 min. More over a mapped samba drive >Immediately disconnected after restart !!! I am really really >confused. All Linux clients are running so well but Win-XP. I have >checked the nmbd.log and found errors like>``````````````````` > process_node_status_request: status request for name ENTERPRISE<1b> >from IP 192.168.1.41 on subnet UNICAST_SUBNET - name not found. >[2009/07/17 15:43:03, 1] > snip........nmbd/nmbd_incomingrequests.c:process_node_status_request(328)>Here is my smb.conf>`````````````````````````` >[global] >unix password sync = yes >force create mode =0774 >utmp = no >####smb ports = 139 >#####domain logons = no >domain master = no >os level = 65 >ocal master = yes >preferred master = yes > >passwd program = /usr/sbin/userpasswd %u >passwd chat = *password:* %n\n *password:* %n\n *successfully.* > >netbios name = Clarkconnect >workgroup = Enterprise >server string = ClarkConnect samba > >bind interfaces only = yes >interfaces = lo eth0 eth1>use client driver = yes >snip ..................... >force user = apache >deadtime = 10 >````````````````````>testparm does not show any error. Please enlighten me what is >wrong/missing here. eagerly waiting for a kind response.>ThanksI see you have 2 network interfaces in your smb.conf file. Are they both in the same subnet. If so remove one of them, and see if the problem goes away. regards, Johan Checked by AVG - www.avg.com Version: 8.5.387 / Virus Database: 270.13.16/2240 - Release Date: 07/16/09 18:00:00