[font=trebuchet ms]Hi everyone, long time no see.
I’ve got a PHP app that I wrote that requires a CHMOD of 777 for file operations to take place, since PHP isn’t the original creator of said files. However, I’ve discovered some security concerns with this and wrote a patch program to replace all current 777 directories with 755 ones, but have PHP recreate them. (Hence, the files are no longer insecure with the 777 CHMOD settings.) I have this working fine, however there is one problem: in order for the patch to run, its parent directory must also have CHMOD settings set to 777. If the app is installed on the root directory of a host, there is no folder above the root that can be set to 777, so the patch cannot run; is there any way around this? Is there a way to run a patch that copies all 777 folders, deletes them, and renames the copies as the originals in order to give PHP full access to them without needing 777 permissions, without setting the directory in which the patch program is run to 777?[/font]