in reply to Re: running cgi as user other than nobody
in thread running cgi as user other than nobody

I believe the script is being called by Apache, but then again, I'm not 100% sure. I have the directory set (for testing only) to 777 and the file I'm trying to modify is set to 666. I'm still not able to make any changes...always get a Permission Denied. I also get a Permission Denied error when trying to chmod the file from within the script. Could I be doing this wrong?
  • Comment on Re: Re: running cgi as user other than nobody

Replies are listed 'Best First'.
Re: Re: Re: running cgi as user other than nobody
by archen (Pilgrim) on Apr 02, 2002 at 01:16 UTC
    well if you can't chmod the file within the same script then I'd say you're overlooking something (hard to say without looking at the code). I've never actually seen an instance where something like this doesn't work:
    ... open(FILE, ">$file") || die $!; ... [stuff] close(FILE); chmod 0666 $file;
    Opening the file later might still be another issue...