This page looks best with JavaScript enabled

SSHFS Mount Permission Problems

 ·  ☕ 1 min read

Background

When mounting a drive via SSHFS (SSH), I’ve ran into an issue where the directory will mount; however, the mountpoint will be inaccessible. For example, if the /home/user/tmp/tshare directory is owned by user1 and is of the user1 group, you then mount a remote directory to this directory, you will get the following results:

1
2
3
4
5
6
drad@xia:~/tmp$ ls -la
ls: cannot access tshare: Permission denied
total 20
drwxr-xr-x  3 drad drad  4096 Nov 12 16:35 .
drwx------ 57 drad drad 16384 Nov 12 14:25 ..
d?????????  ? ?    ?        ?            ? tshare

Details

I investigated several theories (e.g. passing the -o uid or -o gid or even a umask=027) and none worked. The issue turned out to be an odd permission issue of the remote directory. The remote directory had privs of 660 with the user I mounted it as being the owner and group of the directory. As soon as I changed permissions to 770 of the remote directory and remounted via SSHFS the mountpoint worked fine.

Share on

drad
WRITTEN BY
drad
Sr. Consultant