sharing: Doesn't work with all files and directories
Reference: https://discuss.freedombox.org/t/sharing-app-with-tor-address/466
The Sharing app currently gives no indication of its limitations about sharing files and directories. There are multiple failure scenarios:
- Sharing /tmp works but not a newly created directory /tmp/media with new files.
- Sharing /var/log works but most of the files and directories are missing. Some of the files throw 403 Forbidden errors.
- If a directory as a whole is not accessible like the /tmp/media case above, a 404 is thrown. Changing ownership, file permissions etc. has no effect. Nor does restarting the Apache server.
- I was able to successfully add '/var/lib/ejabberd' as a share but got a 403 Forbidden when trying to access it.
Tested on FreedomBox development vagrant machine. Plinth is running as user plinth.