I am currently working on a small project. The object is to let users (participants to a game) upload a user specific file to the server.
In order for me to process the result easily, these files need to be in a specific and clear directory structure (like group1/team3/file2.exe etc)
Problem is: I don't want other participants to be able to download the files from their competitors.
Now, the real question is:
* what permissions do I have to set if only the PHP-scripts (pages) and myself (by FTP) must be able to up- or download the files?
I use a loginpage, and thus nobody can upload files with the PHPscripts, unless they are in the right team. But as my dir's are wideopen (777), everybody can put a file there or even replace the file of somebody else. also reading the file should be forbidden for strangers. How do I accomplish this?
Thx for the help!