【问题标题】:Can't write to a file with sshfs无法使用 sshfs 写入文件
【发布时间】:2018-03-27 16:48:25
【问题描述】:

我正在尝试将目录从远程计算机安装到我的笔记本电脑。 这是命令。

 sshfs user01:/home/user01/somedir /home/user02/mount -o allow_other -o rw

当我尝试写入文件时,我得到:

E212: Can't open file for writing

这里是/etc/fuse.conf的内容

user_allow_other

/home/user01/somedir 的远程目录的权限

-rw-r--r--  1 user01 users

我不想更改远程机器上的权限。

【问题讨论】:

    标签: sshfs


    【解决方案1】:

    这是有效的命令。

     sshfs -o sftp_server="/usr/bin/sudo -u user01 /usr/libexec/sftp-server" you@<server>:/home/user01 /source/home_dir/mountpoint
    

    确保目标服务器上的usr/libexec/sftp-server 是正确的路径,或者进行调整。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-10-20
      • 2012-10-16
      • 2014-08-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-01
      • 2020-10-09
      相关资源
      最近更新 更多