真机服务器配的IP地址是40.40.40.240,预装的OS是Suse Linux Enterprise 11 SP1,Samba版本是Samba 3.6.6;
用作客户端的PC IP是40.40.40.125,OS为Windows 7专业版;
PC上VMware上装的CentOS 6.2,网络模式为“桥接模式”,分配的小网IP是 40.40.40.115,Samba版本是Samba 3.6.7
我在两台服务器上都创建了smb1、smb2和smb3三个用户,都是users群组的,cat /etc/group | grep users的结果为 users:100:smb1,smb2,smb3
我在两台服务器上都创建了用作群共享的目录/smb_share, 通过 chmod 2770 -R /smb_share 来设定了该目录的属性,ls的结果为: drwxrws---. 2 root users 4096 8月 9 11:21 /smb_share。
两台服务器上的所有的防火墙都关完了的,CentOS下是通过iptables -F,Suse下是通过 rcSuSEfirewall2 stop来实现的,并且通过 iptables -L 查看确实已经没有任何规则了
现在遇到了一个奇怪的问题,一模一样的smb.conf,同样由本机win7做客户端,在本机Vmware中的CentOS 6.2 中Samba服务一切正常,但是在实际服务器的SLE 11上,smb服务起来之后,本机Win7能够连接上服务器,输入用户名/密码后能够看到共享的两个目录,但是就是打不开,Win7始终报错“Windows无法访问40.40.40.240\smb_share”,错误代码0x80070043,“找不到网络名”,真的晕了~~~
我后来又把Suse下的 /smb_share目录权限改成了 chmod 777 -R /smb_share ,但是结果还是一样的,晕了~~~~
请教各位这到底是怎么回事情啊?难道Suse真的就要比CentOS苛刻些么?
3 个解决方案
#1
我在两台服务器上使用的smb.conf如下
[global]
workgroup = CHINA
netbios name = ZHX-Server
server string = Samba Server Test
unix charset = utf8
display charset = utf8
dos charset = cp936
log file = /var/log/samba/log.%m
load printers = no
max protocol = smb2
security = user
passdb backend = tdbsam
[homes]
comment = Home Directories
browseable = no
read only = no
create mode = 0664
directory mode = 0775
[project]
comment = smbuser's project
path = /smb_share
browseable = yes
read only = no
write list = @users
[global]
workgroup = CHINA
netbios name = ZHX-Server
server string = Samba Server Test
unix charset = utf8
display charset = utf8
dos charset = cp936
log file = /var/log/samba/log.%m
load printers = no
max protocol = smb2
security = user
passdb backend = tdbsam
[homes]
comment = Home Directories
browseable = no
read only = no
create mode = 0664
directory mode = 0775
[project]
comment = smbuser's project
path = /smb_share
browseable = yes
read only = no
write list = @users
#2
你的是不是设置了smb.conf.smb1,中途又更改了smb.conf里边的netbios name = ZHX-Server ?
网络名找不到和nmb有关,你在win7里边用ping zhx-server看一下,是否正常!
网络名找不到和nmb有关,你在win7里边用ping zhx-server看一下,是否正常!
#3
如果smb.conf和smb.conf.smb1里边的netbios name后边不一样,就会出类似的问题!
#1
我在两台服务器上使用的smb.conf如下
[global]
workgroup = CHINA
netbios name = ZHX-Server
server string = Samba Server Test
unix charset = utf8
display charset = utf8
dos charset = cp936
log file = /var/log/samba/log.%m
load printers = no
max protocol = smb2
security = user
passdb backend = tdbsam
[homes]
comment = Home Directories
browseable = no
read only = no
create mode = 0664
directory mode = 0775
[project]
comment = smbuser's project
path = /smb_share
browseable = yes
read only = no
write list = @users
[global]
workgroup = CHINA
netbios name = ZHX-Server
server string = Samba Server Test
unix charset = utf8
display charset = utf8
dos charset = cp936
log file = /var/log/samba/log.%m
load printers = no
max protocol = smb2
security = user
passdb backend = tdbsam
[homes]
comment = Home Directories
browseable = no
read only = no
create mode = 0664
directory mode = 0775
[project]
comment = smbuser's project
path = /smb_share
browseable = yes
read only = no
write list = @users
#2
你的是不是设置了smb.conf.smb1,中途又更改了smb.conf里边的netbios name = ZHX-Server ?
网络名找不到和nmb有关,你在win7里边用ping zhx-server看一下,是否正常!
网络名找不到和nmb有关,你在win7里边用ping zhx-server看一下,是否正常!
#3
如果smb.conf和smb.conf.smb1里边的netbios name后边不一样,就会出类似的问题!