Cannot write to Folder mounted with SSHFS
21,902
Solution 1
Your update indicates that only certain applications are having trouble writing to the sshfs mount. You might have to enable one or more of the "workarounds" listed in the sshfs man page. I would start with the "truncate" and "rename" workarounds:
sshfs -o idmap=user -o workaround=truncate:rename [email protected]:/path/to/folder folder
Solution 2
It is not clear from your description what are the local and remote user, and what are the permissions of the files.
In any case, I would try to use the option -o allow_other
on the sshfs
command line.
Related videos on Youtube
Author by
JM at Work
Updated on September 18, 2022Comments
-
JM at Work almost 2 years
I just created a folder according to SSHFS (Ubuntu Docs)
sudo apt-get install sshfs sudo gpasswd -a jm fuse sshfs -o idmap=user [email protected]:/path/to/folder folder
Then I found that the folder is mounted, but I cannot write to it. The permissions seems fine
But I even tried with
chmod -R 777 ./folder
Still no go
UPDATE: It seems I can't write using NetBeans only. But it works with LeafPad for example
-
Ryan C. Thompson about 13 yearsIt would help if you posted a short transcript showing how you tried to write to the sshfs filesystem, along with the resulting error.
-
-
enzotib about 13 years
sshfs
depends onfuse-utils
and cannot work without. The user already has it, so your suggestion cannot solve the problem. -
earthmeLon about 13 yearsThe problem is that he does not have FUSE configured correctly. At one time, it was required to install FUSE. I have updated the answer to be more helpful. I am very confident that FUSE is indeed his problem.
-
JM at Work about 13 yearslocal I am
jm
server I have bothjm
and something else -
Ryan C. Thompson about 13 yearsIn my experience, you cannot mount a FUSE filesystem at all unless FUSE is already configured. The fact that the OP has successfully mounted the filesystem indicates that this has been done already. The information on fstab and public-key auth, while useful, is not relevant to solving the OP's problem.