I'm having irregular disconnecting of win2k/xp clients from our samba PDC (fileserver).

I've been reading a lot, searching through google,comparing other smb.conf out on the web, but most seem to have more or less the same main parts and nothing has solved the problem yet.

Sometimes it happens when i start my windows explorer to browse my HD, but not all of the time I've also seen it happen when clients can't find their roaming profiles (sometimes happening) When e.g. my pc dc's from samba shares, i'm still able to connect through Putty (ssh) without a problem.

I've been searching through the logs and each time a client dc's, something like this happens:

        lib/util_sock.c:write_data(562)
        ...
        Error writing 5 bytes to client. -1. (Connection reset by peer)

Part of error log.smbd down here.

[2007/07/24 09:19:32, 0] lib/util_sock.c:get_peer_addr(1229)
  getpeername failed. Error was Transport endpoint is not connected
[2007/07/24 09:19:32, 0] lib/util_sock.c:get_peer_addr(1229)
  getpeername failed. Error was Transport endpoint is not connected
[2007/07/24 09:19:32, 1] lib/util_sock.c:get_peer_name(1188)
  Gethostbyaddr failed for 0.0.0.0
[2007/07/24 09:19:32, 0] lib/access.c:check_access(327)
[2007/07/24 09:19:32, 0] lib/util_sock.c:get_peer_addr(1229)
  getpeername failed. Error was Transport endpoint is not connected
[2007/07/24 09:19:32, 0] lib/util_sock.c:get_peer_addr(1229)
  getpeername failed. Error was Transport endpoint is not connected
  Denied connection from 0.0.0.0 (0.0.0.0)
[2007/07/24 09:19:32, 1] smbd/process.c:process_smb(1103)
[2007/07/24 09:19:32, 0] lib/util_sock.c:get_peer_addr(1229)
  getpeername failed. Error was Transport endpoint is not connected
  Connection denied from 0.0.0.0
[2007/07/24 09:19:32, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.148. Error Connection reset by peer
[2007/07/24 09:19:32, 0] lib/util_sock.c:send_smb(769)
  Error writing 5 bytes to client. -1. (Connection reset by peer)
[2007/07/24 09:19:32, 1] lib/util_sock.c:get_peer_name(1188)
  Gethostbyaddr failed for 192.168.1.148


Part of the smb.conf

[global]
        netbios name = SERVER
        workgroup = TEST

        domain master = yes
        domain logons = yes
        local master = yes
        preferred master = yes
        os level = 35
        wins support = yes
#       name resolve order = wins lmhosts hosts bcast
#       dns proxy = yes

#       browse list = yes
        browseable = no
        max disk size = 20480

        # Logging
#       log level = 3                                   #Log level 3 only for 
troubleshouting
#       log file = /var/log/samba/log.%m                
        
        # [globals] User and group related

        idmap gid = 15000-20000
        add group script = /usr/sbin/groupadd %g
        delete group script = /usr/sbin/groupdel %g

        idmap uid = 15000-20000
        add user script = /usr/sbin/useradd -m %u
        delete user script = /usr/sbin/userdel -r %u
        
add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null -g machines %u

        passdb backend = tdbsam
        hosts allow = 192.168.1. 127.0.0.1      

Reply via email to