作者evilkiss (evilkiss)
看板Linux
標題[問題] win7連samba 顯示該IP拒絕連線
時間Wed Aug 17 16:02:31 2016
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
//--------------------------------
看到有人推薦 所以我就全加了 有不該加的嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 210.61.69.6
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1471420954.A.5CF.html
→ OrzOGC: 同網段?08/17 17:00
→ pillbox1989: samba可以設定那些ip可以連,應該是那邊沒改到吧?08/18 02:21
推 fashionjack: smbpasswd 設了嗎? samba.conf設了嗎?08/18 07:15
→ fashionjack: browser=ok public=ok....08/18 07:16
推 TFreeman: 把samba.conf Po上來看看?08/18 07:48
→ TFreeman: Map to guest設定為?08/18 07:48
IP在10.2.127之下,pc是10.2.127.172,Public,browseable 都是yes,但guest 記得是沒設定,Smbpassed 有做
※ 編輯: evilkiss (36.231.23.220), 08/18/2016 08:18:50
※ 編輯: evilkiss (60.250.121.234), 08/18/2016 11:03:43
推 junorn: 要不要看一下samba那邊的log看看? 08/18 14:34
推 TFreeman: Hosts allow=10.2.127."*" 不需要萬用字元嗎? 08/18 20:16
→ TFreeman: map to guest=bad "password"試試? 08/18 20:17
→ TFreeman: 可以使用testparm指令檢查smb.conf是否問題~ 08/18 20:18
→ evilkiss: 都無法 我退回去14板就沒問題了QQ 08/30 19:29