我使用 安装了一个远程目录sshfs,但无法使用 保存文件gedit,而使用vi作品保存相同的文件。更改权限以o-r (640)允许gedit保存文件 OK。有没有办法更改sshfs连接以在gedit不chmod删除每个文件的情况下工作?
(我使用 -o uid= id -u-o gid= id -g,这样远程文件似乎归我所有)
$ touch test.txt
[!] test.txt appears
$ vi test.txt
[!] :wq -> saves just FINE
$ gedit test.txt
[!] opens fine, but upon save shows "You do not have the
[!] permissions necessary to save the file" error -
[!] CAN'T SAVE
$ vi test.txt
[!] edit, :wq -> …Run Code Online (Sandbox Code Playgroud)