Thursday, November 10, 2022

windows 跨网段访问samba you can't access this shared folder because your org

 提示错误:

      You can\'t access this shared folder because your organization\'s security policies block unauthenticated guest access.
      These policies help protect your PC from unsafe or malicious devices on the network.

原因:

  因为Window10 更新安全策略,默认禁止访问无密码的Samba共享

解决:

  在Samba中增加用户名密码配置, 并在配置文件smb.conf 中注释掉 map to guest = bad user 

          如:    

    # This option controls how unsuccessful authentication attempts are mapped
    # to anonymous connections
    #map to guest = bad user