[問題] win7連samba 顯示該IP拒絕連線

看板Linux作者 (evilkiss)時間7年前 (2016/08/17 16:02), 7年前編輯推噓4(407)
留言11則, 6人參與, 最新討論串1/1
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

08/17 17:00, , 1F
同網段?
08/17 17:00, 1F

08/18 02:21, , 2F
samba可以設定那些ip可以連,應該是那邊沒改到吧?
08/18 02:21, 2F

08/18 07:15, , 3F
smbpasswd 設了嗎? samba.conf設了嗎?
08/18 07:15, 3F

08/18 07:16, , 4F
browser=ok public=ok....
08/18 07:16, 4F

08/18 07:48, , 5F
把samba.conf Po上來看看?
08/18 07:48, 5F

08/18 07:48, , 6F
Map to guest設定為?
08/18 07:48, 6F
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

08/18 14:34, , 7F
要不要看一下samba那邊的log看看?
08/18 14:34, 7F

08/18 20:16, , 8F
Hosts allow=10.2.127."*" 不需要萬用字元嗎?
08/18 20:16, 8F

08/18 20:17, , 9F
map to guest=bad "password"試試?
08/18 20:17, 9F

08/18 20:18, , 10F
可以使用testparm指令檢查smb.conf是否問題~
08/18 20:18, 10F

08/30 19:29, , 11F
都無法 我退回去14板就沒問題了QQ
08/30 19:29, 11F
文章代碼(AID): #1Nj1eQNF (Linux)