How to set up sshfs to use www-data
I have 2 Debian systems, prod1 and prod2, with their respective users, prod1 and prod2 as well. I want to setup an sshfs with autofs to have a directory on prod1 in the /home/prod1/ that the user www-data could use independently on one server or the other. I want the owner of the content to be www-data. I want to use ssh from the prod2 user to prod1 user, not directly www-data. How would I configure /etc/fstab, /etc/auto.master and /etc/auto.sshfs ?
Solution 1:
cat /etc/fuse.conf
# mount_max = 1000
# user_allow_other
Uncomment the user_allow_other
line and then this will be work.