执行 smbclient -d 4 -N -L //10.16.84.123
报错如下,
session request to *SMBSERVER failed (Not listening for ca lling name)
google 之,检查 smb.conf 配置文件,发现 host allow 配置存在问题:
On Sun, 6 Feb 2000, Robert A. Hayden wrote: > I have a samba share I've set up that I restrict by IP address. It's > starting to get a little unwieldy since there are several listings in it. > > I tried simply adding a new "hosts allow =" line in smb.conf but it only > accepted addresses listed in the last entry instead of the previous allow > lines. > > What's the mechanism to have multiple "hosts allow =" lines? I've already > shrunk the networks and such, but it's just getting unwieldy. Well, not really a perfect solution, but how about use of "\": hosts allow = xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx, \ xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx, \ xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx
按照上面的说法,有可能是 host allow 配置存在问题,host allow 只允许一次
[global]
workgroup = MYGROUP
server string = Samba Server
hosts allow = 10.61.81.157
hosts allow = 10.16.84.123
hosts allow = 10.14.11.129
修改在一行后,恢复。其它相关内容地址:
http://www.samba.org/samba/docs/server_security.html
没有评论:
发表评论