I'm running a Linux webserver (apache2) and I'm having problems with modifying files between different users. The biggest problem is deleting files created by apache/php via FTP, I just get Permission denied. I've been trying to add the ftp-user and apache to the same group but it won't work.
Here's my setup now:
root:x:0: ...some rows... www-data:x:33:ftpdude,root ...more rows... ftpdude:x:1000:
All the files that are created by php have Owner 33, and ftp'd files have Owner 1000.
I even tried
but it had no effect.
Only way I've managed to make the php-created files deletable is to chmod(file, 0777) all those files but I really don't/shouldn't want to do that. What am I not getting right here?