My application on the server wants to copy a file from a remote directory mounted by sshfs to a local directory. The application code:
The permissions of /data is as follows:
drwxrwxrwx 1 1027 root 4096 May 6 10:16 data
So every user(including Apache) should able to access the folder, but in the logfile I get:
IOError: [Errno 13] Permission denied
Some edits and updates on my question:
I set allow_other when mounting via SSHFS, and all the directories along the path to the source file have permissions of at least 755.So any use has read access to it.