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:
nano /etc/group
->
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
www-data:x:33:ftpdude,root,www-data
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?