Change permission of http uploaded file FROM www using PHP chmod function on FreeBSD
Posted on 2008-10-22
Files uploaded via http and moved via a PHP script are currently given the owner www:www.
I need these files to belong to a different user so they count towards their file quota and not toward www's.
I intend to use PHP's chmod function to change the owner but I appreciate that without some changing of privileges on the server this will not be possible.
The server is running FreeBSD. I have root access. What permissions do I need to add/change on the server to allow PHP, running as www, to change the owner of files belonging to www:www?