Angelo Fuchs asked:
I have an
Apache2 on a
Debian Linux. I mount a
sshfs to the directory
/mnt/mountpoint/ (it is mounted on boot time via
/etc/fstab). It is accessed with a softlink from
When I access the directory with a browser I get a 403.
As fas as I can see the user
www-data can not read the directory.
d????????? ? ? ? ? ? mountpoint
drwxrwxrwx 1 aneuschitzer www-data 4.0K Jun 5 16:27
My corresponding line in
sshfs#reader@targethost:/mnt/mountpoint /mnt/mountpoint fuse ro,noexec,gid=www-data 0 0
First I had the options
ro,noexec, I tried without
noexec. I have read How to set up sshfs to use www-data and tried adding the gid, but it did not help.
You need to enable the options
/etc/fuse.conf. Otherwise only the user who mounted the filesystem can use it. Once you’ve made the change, unmount and remount the filesystem.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.