小编Sla*_*a N的帖子

gedit + sshfs 无法保存(vi 保存得很好!)

我使用 安装了一个远程目录sshfs,但无法使用 保存文件gedit,而使用vi作品保存相同的文件。更改权限以o-r (640)允许gedit保存文件 OK。有没有办法更改sshfs连接以在geditchmod删除每个文件的情况下工作?

(我使用 -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)

permissions gedit sshfs

6
推荐指数
3
解决办法
6074
查看次数

标签 统计

gedit ×1

permissions ×1

sshfs ×1