working my way around a 0777 issue - would suid/guid help
I have a php script uploading photos through a protected backend area to a public directory. Unfortunately, due to the settings of a server I have no control over the directory I write the photos to has to have its permissions set to 0777 to permit the script to create and write the files.
Naturally, this is not really the way forward. I wonder if I can work around the problem using suid, guid etc??
I don't have a very clear idea of what suid/guid can do, but I understand that one of the settings would allow files within a dir to be run as superuser?? Is this really the case?
If my php file (which is in a .htaccess protected dir) had this permission level it should be able to write files to other areas of the server, right?