Community Fileshare

So this was a pretty rough adventure. The goal was to have an area where a few friends could upload and download files. The biggest reason for this being that my servers have fairly decent connections, with speed and latency being very favourable.
One thing I noticed was that if user 1 uploads files into the public directory (that is owned by pubuser), Apache and SFTP have no issues serving the files however admin intervention is required if pubuser wants to move or modify any of the files. Admin intervention is also required if pubuser wants to add additional files to the directories. The reasoning behind why this happened is quite simple. pubuser has very limited rights, so if user 1 adds files he/she is the owner of those files, so pubuser can’t do anything about it. I suppose a simple solution could be putting something like the line below into CRON and just have it run periodically… chown pubuser:pubuser /home/pubuser -R
It’s not perfect and there are a few things I would like to investigate and improve on, however after a great effort the end result is working, and now a small group can easily add and share files.