in reply to Re: Re: Re: Stupid newbie question - perl/cgi
in thread perl/cgi question: script works from unix command line, but not web page

So to be able to write to files, I HAVE to chmod my scripts to 0777.

I would have refused to work with such crap. If any other user on the machine, and badly set up machines tend to have a lot of users, adds system qw(rm -rf), $ENV{HOME}; to your script, you will be fried on its first run.

U28geW91IGNhbiBhbGwgcm90MTMgY
W5kIHBhY2soKS4gQnV0IGRvIHlvdS
ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
geW91IHNlZSBpdD8gIC0tIEp1ZXJk

  • Comment on Re: Re: Re: Re: Stupid newbie question - perl/cgi

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Stupid newbie question - perl/cgi
by mt2k (Hermit) on Apr 04, 2002 at 06:37 UTC
    That is the strange part I believe.

    The actual user directory is chmoded differently, so that access to the www-root directory is inaccessible. Meaning that they could not edit should they want to. Sure, the file itself is 0777, but the parent directory is 0722 or something less.