I'm running a php script on my apache2 which is actually generating files on the server.
So I want to delete these files again via my ftp client but it says "permission denied" thouth the ftp user has full rights to the folder (let's call it "test) the files are being generated in.
When I look at the file that has to be deleted it says that it's owned by user "nobody" and group "4294967295", while my ftp user is called "wwwftp" and its group is "ftpusers", so I can't delete with wwwftp what "nobody" created.
How can I setup my ftp user "wwwftp" that it has complete rights under the folder "test"? No matter which user creates files?
I hear your plight. Had the same crisis earlier this year. On my server, the PHP ghost was named "localhost", and I was "httpwebwitch", and neither could do anything with files from the other. If a file was created with PHP, it had to be deleted with PHP. If it was created/sent via FTP, it had to be deleted via FTP. Isn't it annoying?
Back when I was having the problem, I tried a few experiments with PHP "chmod" and setting permissions from FTP, nothing worked.
But be thankful it works like that. It's a security thing. It's Good.
a couple of options:
1) Get the server administrator (a.k.a. superuser) to delete the files for you.
2) do just as I mention above - use PHP to delete the files. Make yourself a little script that uses unlink().