Dan Anderson wrote:
> I have a perl script that writes to its directory, and as such
> the directory is CHMOD 777 in my cgi-bin. (Linux box) I figured this
> might be dangerous, but didn't think there was any harm in it. Am I
> right or will the script kiddies be all over me?
>
> -Dan
Don't do that! Either one, writng to the same directory as the CGI, or
chmod'ing *anything* 777. It would make you very unwelcome. Besides,
their is a perfectly workable alternative, using sibling directories.
base
cgi chmod 755
myscript.pl
guessit 760
mydata
If your web-server and Perl installation are well-configured, they should
run with group permissions. I've tried this configuration on two Linux
servers I have work on, and it works on both.
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>