This does not sound like an issue that would be resolved via making the script setuid. Without seeing the code, we can only speculate, and hope that something we post here helps you.
As was already posted, it sounds like perhaps either an issue of something not being defined as expected, or going out of scope earlier than expected, or perhaps something different in the environment the webserver will use than from your normal environment (paths, etc.). Does the webserver have appropriate permissions on the directory to write a file to it?
You mention that the SWF file is chmod'd 777-in general, this is a BAD thing (from a security standpoint, see also Security issues when allowing file upload via CGI, among other posts on that arena). I would seriously doubt that the generated file needs to be executable, so another permission might be a better (at worst, maybe 666).
I hope this, and suggestions from the many monks much wiser than my lowly self, help you with this question.
In reply to Re: Do I need a setuid script ?
by atcroft
in thread Do I need a setuid script ?
by katzuma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |