I have a script that is written the way it should be. A form page with a file input field is used to upload a file from the user's machine to the web server. However, after uploading, the file can only be successfully moved or copied if the destination folder has write permissions for "everyone else."

This leads me to believe that whichever process is copying / moving the file doesn't belong to the same group as this folder. For example, a 775 chmod on the destination folder won't allow the file to be moved or copied, but a 757 chmod will. I'm a bit worried about giving everyone write permissions on this folder...

The server is a Cobalt Raq4 appliance with PHP 4.0.3p|1 preinstalled. Does anyone know of a solution that will allow me to copy or move uploaded files without giving everyone else write permissions to the destination folder? Thanks in advance!

    set the group for the server to the web process users group and set permissions to 775 or 770.

      Write a Reply...