重新启动 Ubuntu 12.04.4 LTS(GNU/Linux 3.8.0-35-generic x86_64)LTS 服务器后,samba 共享不再起作用。
细节:
使用服务器的 IP 地址从 Windows 服务器连接到 Samba 共享。示例 \ipaddress\sharename
我在客户端和服务器上使用相同的用户名和密码进行连接
能够从 Windows 服务器 ping 通 Linux 服务器。重新启动 nmbd 和 smbd 服务。检查/重置用户密码和 smbusername 密码。
系统防火墙:
To Action From
-- ------ ----
3306/tcp ALLOW Anywhere
443 ALLOW Anywhere
161/udp ALLOW Anywhere
137/tcp ALLOW Anywhere
138/tcp ALLOW Anywhere
139/tcp ALLOW Anywhere
445/tcp ALLOW Anywhere
3306/tcp ALLOW Anywhere (v6)
443 ALLOW Anywhere (v6)
161/udp ALLOW Anywhere (v6)
137/tcp ALLOW Anywhere (v6)
138/tcp ALLOW Anywhere (v6)
139/tcp ALLOW Anywhere (v6)
445/tcp ALLOW Anywhere (v6)
3306/tcp ALLOW OUT Anywhere
3306/tcp ALLOW OUT Anywhere (v6)
Samba 共享配置:
[Sharename1]
comment = sharename1
path = /home/username1
force user = username1
browseable = yes
writeable = yes
read only = No
create mask = 0754
[Sharename2]
comment = sharename2
path = /home/username2
force user = username2
browseable = yes
writeable = yes
read only = No
create mask = 0754
所有共享均不起作用,但在重启之前都可以起作用。
日志记录
[2014/04/10 08:28:08.606322, 0] smbd/server.c:1107(main)
standard input is not a socket, assuming -D option
[2014/04/10 15:50:21, 0] smbd/server.c:1051(main)
smbd version 3.6.3 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2014/04/10 15:50:21.293312, 0] smbd/server.c:1107(main)
standard input is not a socket, assuming -D option
日志记录
This response was from IP 172.25.11.22, reporting an IP address of 172.25.11.22.
[2014/04/10 16:27:07, 0] nmbd/nmbd_namequery.c:109(query_name_response)
query_name_response: Multiple (2) responses received for a query on subnet 172.25.69.37 for name WORKGROUP<1d>.
This response was from IP 172.25.11.22, reporting an IP address of 172.25.11.22.
[2014/04/10 16:27:07, 0] nmbd/nmbd_namequery.c:109(query_name_response)
query_name_response: Multiple (2) responses received for a query on subnet 172.25.69.39 for name WORKGROUP<1d>.
This response was from IP 172.25.11.22, reporting an IP address of 172.25.11.22.
[2014/04/10 16:27:07, 0] nmbd/nmbd_namequery.c:109(query_name_response)
query_name_response: Multiple (2) responses received for a query on subnet 172.25.69.116 for name WORKGROUP<1d>.
This response was from IP 172.25.11.22, reporting an IP address of 172.25.11.22.
[2014/04/10 16:27:07, 0] nmbd/nmbd_namequery.c:109(query_name_response)
query_name_response: Multiple (2) responses received for a query on subnet 172.25.69.160 for name WORKGROUP<1d>.
This response was from IP 172.25.11.22, reporting an IP address of 172.25.11.22.
[2014/04/10 16:27:07, 0] nmbd/nmbd_namequery.c:109(query_name_response)
query_name_response: Multiple (2) responses received for a query on subnet 172.25.69.168 for name WORKGROUP<1d>.
This response was from IP 172.25.11.22, reporting an IP address of 172.25.11.22.
[2014/04/10 16:27:07, 0] nmbd/nmbd_namequery.c:109(query_name_response)
query_name_response: Multiple (2) responses received for a query on subnet 172.25.69.205 for name WORKGROUP<1d>.
This response was from IP 172.25.11.22, reporting an IP address of 172.25.11.22.