Ubuntu 14.04 - Share SSHFS Folders

If you want to allow other users, such as the apache user, to be able to access files mounted through SSHFS, then you need to run the following commands:
# Uncomment the line user_allow_other in the fuse config
sudo sed -i 's;#user_allow_other;user_allow_other;' /etc/fuse.conf

# Add yourself to the fuse group
sudo usermod -a -G fuse $USER

Now you will need to log out and in again for the changes to take effect. You will also need to remember to use the

-o allow_other
in your SSHFS command. E.g
sshfs -o allow_other user@hostname:/path/to/dir /path/to/mount

No comments:

Post a Comment