「Windows」- 访问 Samba 共享

解决方案

// 映射网络驱动(持久化挂载)

net use Z: \\computer_name\share_name /PERSISTENT:YES

// 卸载共享

net use  Z: /delete

常见问题处理

You can’t access this shared folder because your organization’s security policies block unauthenticated guest access.

You can’t access this shared folder because your organization’s security policies block unauthenticated guest access
FIX: You Can’t Access This Shared Folder Because Your Organization’s Security Policies Block Unauthenticated Guest Access

问题描述:

解决方案:
Open the Local Group Policy Editor (gpedit.msc).
In the console tree, select Computer Configuration > Administrative Templates > Network > Lanman Workstation.
For the setting, right-click Enable insecure guest logons and select Edit.
Select Enabled and select OK.

参考 Guest access in SMB2 and SMB3 disabled by default in Windows 文档,以获得详细说明。

参考文献

How to Mount CIFS Shares from Windows Command Line – FileCloud – FileCloud Support