They are windows xp client for the most part.
I already saw that post and disabled the webclient service on all computers beforehand.
Main Topics
Browse All TopicsI have a ubuntu server 9.0.4 configured with samba 3.0.28a.
The samba server is configured to authenticate client connections against an active directory server and everything is working fine.
The problem lies in the fact that I have a 5-10 seconds delay when accessing the share\map drive from client computers. The problem only occurs when the share wasn't access for some time.
I have googled this and tried many fix including removing and adding a couple of lines from the socket options = parameter in smb.conf but still without success.
I have enclosed my smb.conf.
Anyone got any ideas of what might be going on?
Thx in advance
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Windows 2000, XP, and now Vista (and soon, Windows 7) all will prefer to use SMB-over-IP (port 445) instead of the older NetBIOS-over-IP (ports 137-139)... yet many Samba systems still block port 445 (with a DROP), which causes this type of delay (Win2K family systems are awaiting a response on the NEW port before dropping back to the OLD port).
Now, since Samba 3.0, the default behavior of Samba is to listen for connection attempts on both ports 445 & 139, but many installation scripts don't properly open port 445!
So, there are 2 things you can do:
1) Enable the use of port 445 by opening it on your firewall (iptables) and making sure samba is configured to listen for it.
The iptables rules would look like:
-A INPUT -m tcp -p tcp --dport 445 -j ACCEPT
-A INPUT -m udp -p tcp --dport 445 -j ACCEPT
The line in the smb.conf file (if there is one) should look like:
smb ports = 445 139
-OR- the line for smb ports could be commented out, as the above line is the DEAFULT!
Remember to reload/restart IPTABLES & SAMBA when you're done!
==OR==
2) DISABLE the use of port 445, but make it more obvious to the client that you're not supporting that connect method by adding the following rules to your iptables
-A INPUT -m tcp -p tcp --dport 445 -j REJECT
-A INPUT -m udp -p tcp --dport 445 -j REJECT
This way, when the connection attempt comes on port 445 first, it is REJECTED (instead of being dropped), so the Win2K model client will immediately try on port 139 instead, instead of waiting for port 445 to timeout.
I hope this helps!
Dan
IT4SOHO
oops... there is a cut/paste error above... the iptables lines for UDP should show udp for both -m and -p...
Also, to be complete, you should also limit connections to your local LAN.... so the REAL lines should look more like
-A INPUT -m tcp -p tcp --dport 445 -s 192.168.0.0/24 -j ACCEPT
-A INPUT -m udp -p udp --dport 445 -s 192.168.0.0/24 -j ACCEPT
ASSUMING your LAN is a 192.168.0.0 LAN! (Use your REAL LAN specification there!)
Good Luck!
Dan
IT4SOHO
Business Accounts
Answer for Membership
by: markpalinuxPosted on 2009-06-15 at 18:50:57ID: 24634415
What type of clients are connecting? What type of clients are seeing the 5 - 10 second delay?
Check this out
http://www.experts-exchang