Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: cgi-bin server error

by slayven (Pilgrim)
on Feb 14, 2002 at 09:30 UTC ( #145409=note: print w/replies, xml ) Need Help??


in reply to Re: Re: cgi-bin server error
in thread cgi-bin server error

As rjray mentioned, the webserver usually runs as user nobody, so all the cgi-script run as if they were executed by this user. If you need to open a file within a cgi-script, the file has to be readable by nobody.

You should also consider that files created by the cgi-script are owned by nobody with the permissions depending on his umask.

Note that these are some default configuration options. It's possible that the cgi-scripts are executed with the permissions and rights of the script-owner. Ask your admin about the webserver configuration and try to find a secure solution for your problem. The easiest way would be to change the file permissions to world-readable (chmod 666 <file>) which means that everyone may read the file who has access to the server - not a secure solution for sensible data ...

--
trust in bash
but tie your camel

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://145409]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2023-12-09 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (38 votes). Check out past polls.

    Notices?