linux - Samba 或 smbclient 无法连接到 windows 本地磁盘或共享,如 c$、d$

标签 linux share samba

我在从 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/

相关文章:

linux - 使用 aio_write() 但仍然看到数据通过缓存?

c++ - 在 Linux 上使用 O_RDWR 进行 open() | O_CREAT |如果文件位于 Win10 PC 的 samba 共享上,则 O_EXCL 原子?

android - 如何在 Android 中创建自定义共享对话框

python - 如何从搜索中排除可能正在使用或被复制到 python 中的文件?

php - Samba用的是哪个CPU性能?

python - IronPython - Linux 中的 DynamicWebServiceHelpers.dll?

python:在文本文件中记录异常崩溃

Linux:如何在后台排队一些作业?

android - 简单的 NFC 网址共享

modal-dialog - 配置 Alfresco.util.PopupManagers YUI 对话框