win7連samba 顯示該IP拒絕連線 - Linux

Table of Contents

server端使用 ubuntu 16.04 (64bit)
client端使用 win7 (64bit)

root@kevin-ubuntu:/home/smbuser# smbclient -L //10.2.127.104 -U smbuser
WARNING: The "syslog" option is deprecated
Enter smbuser's password:
Domain=[Public] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu]

Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
public Disk
public Disk
IPC$ IPC IPC Service (Samba Server 4.3.9-Ubuntu)
Domain=[Public] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu]

Server Comment
--------- -------
KEVIN-LAI-W7
KEVIN-UBUNTU Samba Server 4.3.9-Ubuntu

Workgroup Master
--------- -------
Public KEVIN-LAI-W7

請問有可能是什麼原因 使得連線失敗呢?
自己估狗試了一些 firewell , selinux關閉了
win7 tcp/ip netbios helper 設定了

但win7端總是找不到ubuntu那台機器(ping的到)

#smb.conf
//--------------------------------
server string = Samba Server %v
security = user
dns proxy = no
hosts allow=10.2.127.
map to guest = bad user
usershare allow guests = yes
[test]
path = /home/kevin/share_folder
valid users=kevin
public = yes
writable = yes
read only = no
valid users = brown
force directory mode = 777
force create mode = 777
force security mode = 777
force directory security mode = 777
hide dot file = no
create mask = 0777
directory mask = 0777
delete readonly = yes
guest ok = yes
available = yes
browseable = yes
[public]
path=/home/smbuser
available = yes
valid users = smbuser
read only = no
browseable = yes
public = yes
writable = yes
//--------------------------------
看到有人推薦 所以我就全加了 有不該加的嗎?

--

All Comments

Zanna avatarZanna2016-08-22
同網段?
Caitlin avatarCaitlin2016-08-24
samba可以設定那些ip可以連,應該是那邊沒改到吧?
Megan avatarMegan2016-08-27
smbpasswd 設了嗎? samba.conf設了嗎?
Freda avatarFreda2016-08-30
browser=ok public=ok....
Daniel avatarDaniel2016-08-30
把samba.conf Po上來看看?
Map to guest設定為?
Ethan avatarEthan2016-09-01
要不要看一下samba那邊的log看看?
Lydia avatarLydia2016-09-01
Hosts allow=10.2.127."*" 不需要萬用字元嗎?
Skylar Davis avatarSkylar Davis2016-09-05
map to guest=bad "password"試試?
Yedda avatarYedda2016-09-09
可以使用testparm指令檢查smb.conf是否問題~
Lily avatarLily2016-09-13
都無法 我退回去14板就沒問題了QQ