win10访问不了SAMBA

      最近将电脑由win7 升级到了win10,但是发现无法在win10下访问samba,提示了以下错误:

     

      一开始以为是配置问题,反复确认samba配置没问题。

      samba配置如下:

     

 [shared]
        comment =  Share Stuff
        path = /
        browseable = yes
        public = yes
        guest ok = yes
        security = share
        create mask = 0777
        writable = yes
        directory mask = 0777
        force directory mode = 0777
        force create mode = 0777

        如果samba配置没问题,那会不会是LINUX环境配置问题呢?

        于是检查了LINUX的环境,firewall和selinux都关闭了,ssh也可以访问,samba服务器也起着,可以确认LINUX环境没问题。

        如果不是LINUX的问题,那么很可能是WIN10的问题。但WIN10刚开始接触不太了解,之后从GetNAS 网站已正式下线 | 开源周末得到了帮助。

        

        出现这个问题的最主要原因是Windows10操作系统希望使你的电脑“更安全”,从而禁止你以匿名身份访问远程的文件服务器,微软官方解释是这样的:


      由此可知,win10不支持匿名访问,而我配置的samba正好是免登陆访问也就是匿名访问,因此访问不了。

 The security change is intended to address a weakness when using guest access. While the server may be fine not distinguishing among clients for files  (and, you can imagine in the home scenario that it doesn’t matter to you which of your family members is looking at the shared folder of pictures from your last vacation), this can actually put you at risk elsewhere. Without an account and password, the client doesn’t end up with a secure connection to the server. A malicious server can put itself in the middle (also known as the Man-In-The-Middle attack), and trick the client into sending files or accepting malicious data. This is not necessarily a big concern in your home, but can be an issue when you take your laptop to your local coffee shop and someone there is lurking, ready to compromise your automatic connections to a server that you can’t verify. Or when your child goes back to the dorm at the university. The change we made removes the ability to connect to NAS devices with guest access, but the error message which is shown in build 9926 does not clearly explain what happened. We are working on a better experience for the final product which will help people who are in this situation.

      根据文中的解决方案,我仍不能访问samba,于是我只能添加samba访问用户,samba配置如下:

        [shared]
        comment =  Share Stuff
        path = /
        browseable = yes
        valid users = nuonuo
        public = yes
        guest ok = yes
        security = share
        create mask = 0777
        writable = yes
        directory mask = 0777
        force directory mode = 0777
        force create mode = 0777
valid users = nuonuo
        public = yes
        guest ok = yes
        security = share
        create mask = 0777
        writable = yes
        directory mask = 0777
        force directory mode = 0777
        force create mode = 0777

              useradd nuonuo 

              smbpasswd -a nuonuo 

              service smb restart

      samba访问成功!

欢迎关注公众号:

       

      

  • 7
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值