[Samba] Re: read_data: read failure for 4 bytes

Koen Linders koen.news at koca.be
Wed Aug 22 14:11:02 GMT 2007


I've been looking around for the same problem for some time. I'm quite  
sure, but anyone correct me if I'm wrong.

It has something to do with windows clients (win2K, XP) trying to get a  
connection on port 139 and 445. If windows gets a connection on port 445,  
port 139 is dropped and the error appears in the log. Microsoft OS prefer  
445 over 139 (bypassing NetBIOS overhead).

You could avoid this by putting smb ports = 139 in the [global], it forces  
clients to use NetBIOS services. However smbd and nmbd daemon failed to  
start for me that way, but it should really work. I didn't gave it a lot  
time testing, since the error is more of a notification.

I hope this helps.
Koen Linders





On Wed, 22 Aug 2007 15:11:33 +0200, Alexandre Domont - AUF  
<alexandre.domont at auf.org> wrote:

> Hello,
>
> I 've messages in my log...it's regular...but I don’t know if this is a  
> serious problem !
>
> My conf : Samba 3.0.24 and Debian Etch
>
>
> Security Events
> =-=-=-=-=-=-=-=
> Aug 20 17:17:08 dios smbd[9051]: read_data: read failure for 4 bytes to  
> client 10.x.x.x. Error = Aucun chemin d'accès pour atteindre l'hôte cible
>
> System Events
> =-=-=-=-=-=-=
> Aug 20 17:17:08 dios smbd[9051]: [2007/08/20 17:17:08, 0]  
> lib/util_sock.c:read_data(534)
>
>
> Extract smb.conf :
>
> [global]
> security = ads
> realm = BUREAUTIQUE.FR.AUF
> password server = 10.x.x.x
> workgroup = BUREAUTIQUE
> idmap uid = 10000-20000
> idmap gid = 10000-20000
> winbind enum users = yes
> winbind enum groups = yes
> template homedir = /home/%D/%U
> template shell = /bin/bash
> client use spnego = yes
> client ntlmv2 auth = yes
> encrypt passwords = yes
> winbind use default domain = yes
> restrict anonymous = 2
> domain master = no
> local master = no
> preferred master = no
> os level = 0
> smb ports = 445
>
> #msdfs racine DFS Microsoft
> host msdfs = No
> msdfs root = No
>
> # Gestion des logs. Attention à partir de level 3 : ralentissement de  
> perf
> log file = /var/log/samba/%m.log
> log level = 3
> max log size = 1000
>
> #Permission
> inherit acls = Yes
> map acl inherit = Yes
>
> #Print Cups
> printing = cups
> printcap name = cups
> load printers = yes
> printer admin = root, @"admins du domaine"
> cups options = "raw"
>
> #Optimisation
> socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>
>
> [Intranet_Save$]
> path = /srv/public/intranet
> browseable=yes
> writeable=yes
>
>
> Thank you,
>
> ---
> Alexander
>
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the samba mailing list