Windows 10 unable to connect to Samba shares


Some day,   when my laptop computer   upgrades to windows 10 and linux samba file server upgrades to samba 4.5(+),    files shared by samba server can not been accessed from windows 10. 

How to solve it?  There are two possible methods which can handle this issue.


1. samba server 

After samba server version 4.5(+), only NTLMv2 logins will be permited,  but not all clients support NTLMv2. So we set to use previous authenticate method in the same time.

In the  file "/etc/samba/smb.conf",  add just one line to [global] section:

#lanman auth = yes  # Do not need to set it.
ntlm auth = yes

After that , restart your samba server, and problem solved.

If the above can not take effect,  the following may be work.

2. Windows setting

In windows 10,  Microsoft has removed the ability to connect to unsecured network shares by default. 

In registry item:

"HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters"

add a DWORD key with name "AllowInsecureGuestAuth",  then set its value to "1".

Now you should now be able to access samba shares.


3. Conclusion

For me, the first method is enough to solve my problem!


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值