【问题标题】:smbclient connect from Linux to Windows Directorysmbclient 从 Linux 连接到 Windows 目录
【发布时间】:2016-11-18 08:16:22
【问题描述】:

我需要从 Linux 连接到 Windows 以复制一些文件。 我的 Windows 目录如下所示: \Server\Pucblic\dir\offline\etc 我试过了: smbclient -U user%pw \Server\Public\dir\offline\etc 还有

smbclient -U user%pw \\Server\Public --directory dir\offline\etc

没有任何效果。

但是当我尝试连接到 \Server\Public 时 - 它正在工作......

【问题讨论】:

    标签: linux samba libsmbclient


    【解决方案1】:

    试试这些命令

    注意:尝试如下使用正斜杠。

    smbclient -U user%pw //Server/Public --directory dir/offline/etc
    

    如果您想从单个命令行复制文件,请尝试:

    smbclient -U user%pw //Server/Public --directory dir/offline/etc -c 'put "yourfilename"'
    

    【讨论】:

      猜你喜欢
      • 2014-07-23
      • 2012-05-17
      • 2013-08-18
      • 1970-01-01
      • 1970-01-01
      • 2011-05-08
      • 1970-01-01
      • 2011-09-23
      • 1970-01-01
      相关资源
      最近更新 更多