Windows XP和SAMBA

我们有一个运行内核2.6.18-194.32.1.el5和SAMBA版本3.0.33-3.29.el5_6.2的CentOS 5.5服务器。 我们创build了一个隐藏的共享来映射networking驱动器。 这在我们的Windows XP SP3机器上运行良好,然后突然停止工作。 我已经检查了一些东西,并且对如何进一步解决这个问题感到茫然。 下面列出来自各种configuration的片段。

/etc/samba/smb.conf中

[global] client lanman auth = yes client ntlmv2 auth = yes dns proxy = no encrypt passwords = yes hosts allow = 10.130.155. 127.0.0.1 hosts deny = all lanman auth = no load printers = no log level = 1 max connections = 30 netbios name = SAMBA ntlm auth = yes null passwords = no printcap name = /etc/printcap printing = security = user server string = SAMBA Server smb ports = 445 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536 SO_KEEPALIVE workgroup = Workgroup #============ Share Definitions =======================# [share$] comment = Share create mask = 0775 directory mask = 0775 force group = staff path= /vcroot valid users = @staff writable = yes 

iptables规则的SAMBA

 #!/bin/sh IPT="/sbin/iptables" $IPT -A INPUT -s 10.130.155.0/24 -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT $IPT -A INPUT -s 10.130.155.0/24 -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT $IPT -A INPUT -s 10.130.155.0/24 -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT $IPT -A INPUT -s 10.130.155.0/24 -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT $IPT -A INPUT -s 10.130.155.0/24 -m state --state NEW -m udp -p udp --dport 445 -j ACCEPT 

/var/log/samba/smdb.log文件的输出显示如下:

 [2011/05/24 16:40:04, 0] lib/util_sock.c:read_data(540) read_data: read failure for 4 bytes to client 10.130.155.169. Error = Connection reset by peer [2011/05/24 16:40:04, 0] lib/util_sock.c:read_data(540) read_data: read failure for 4 bytes to client 10.130.155.169. Error = Connection reset by peer [2011/05/24 16:40:04, 0] lib/util_sock.c:read_data(540) read_data: read failure for 4 bytes to client 10.130.155.169. Error = Connection reset by peer [2011/05/24 16:40:04, 1] smbd/service.c:make_connection_snum(1077) machineA (10.130.155.169) connect to service share$ initially as user userA (uid=xxx, gid=xxx) (pid 646) [2011/05/24 16:40:04, 0] lib/util_sock.c:read_data(540) read_data: read failure for 4 bytes to client 10.130.155.169. Error = Connection reset by peer [2011/05/24 16:40:04, 1] smbd/service.c:close_cnum(1274) machineA (10.130.155.169) closed connection to service share$ 

我已经尝试调整smb.conf文件中的“smb ports”设置,这似乎并不重要。 我也尝试调整“networking安全:LANpipe理器身份validation级别 – 发送LM和NTLM响应”的客户端设置,这似乎也没有任何区别。

任何帮助,您可以提供将不胜感激。

在黑暗中刺:您的Samba服务器在一个工作组组。 您的XP客户端在AD域中。 这可能会导致问题。 当客户端尝试访问共享时,您是否在Samba日志中有条目? 它曾经联系过服务器吗? 客户端和服务器之间的协商在什么阶段中断?