我在从 Linux 连接到 Windows 磁盘 c 或 d 时遇到问题,但我可以从 Windows 执行此操作而没有问题,例如发出
//192.168.1.100/C$
。
从 linux 我这样做
#smbclient '//192.168.1.100/C$' -U myuser
并得到类似tree connect failed: NT_STATUS_ACCESS_DENIED的错误
但我可以连接到其他共享
#smbclient '//192.168.1.100/test_share' -U myuser
谁能告诉我为什么我不能通过 linux 连接到 windows 分区
smbclient -L '//192.168.1.100/
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
C$ Disk Default share
test_share Disk
distr Disk
IPC$ IPC Remote IPC
Users Disk
最佳答案
来自 https://www.nooblet.org/blog/2011/access-windows-7-admin-shares-from-linux/ ,Windows 机器上需要以下注册表设置:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"LocalAccountTokenFilterPolicy"=dword:00000001
关于linux - Samba 或 smbclient 无法连接到 windows 本地磁盘或共享,如 c$、d$,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20834357/