I have a web server with Ubutu 10.04 and Apache2 and PHP.
When I upload a file to the server via PHP, it creates it using "rwxr-xr-x" and "www-data www-data" as a user and group.
I added the administrator account to the www-data group.
However, when I log in to my server via SSH and try to delete one of the created files, it says: "Permission Denied"? Even if I apply the resolution “0777” to it, I still cannot delete the file.
The only way I found that allows me to delete the file is to use the CHOW file in the "administrator" account. Obviously, I don’t want to do this for every file uploaded, or really CHMOD for every file up to "0777".
What am I doing wrong here that will not allow me to create a file and then delete it using a different account?
source
share