I have two computers on a network, call these Q and X. I want to mount via sshfs X:/ to Q:/mnt/X. So to do this I use:
user@Q $ sudo sshfs root:X/ /mnt/X
This successfully mounts it and allows the files to be visible to root@Q. However if I do:
user@Q $ sudo ls /mnt/X
I can't see the contents because user@Q apparently doesn't have the permissions. Even though:
user@Q $ ls -ld /mnt/X
drwxr-xr-x 1 root root 4096 Aug 30 10:52 /mnt/X
Which implies ordinary users should have permissions to descend into the directory due to the x bit.
How to mount it in such a way that the permissions are kept and anyone under "other" can view the contents as if they could if they were on the original machine?