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:
|
|
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.