in reply to Changing file permissions in a script

The user that runs the CGI under the web server doesn't have permission to write files to /somedir/. If you don't mind having it globally accessible to everyone, you can set the permissions this way:

chmod 777 /somedir/

Replies are listed 'Best First'.
Re^2: Changing file permissions in a script
by ITmajor (Beadle) on Oct 09, 2008 at 14:10 UTC
    How do I change the user that CGI runs under?

      How do I change the user that CGI runs under?

      That's a matter of web server configuration. You haven't mentioned which web server you're using, but the documentation for it can probably tell you how to do that.