Jeff Westman wrote:

>
> Everything makes sense and I appreciate your answering me.  Now, I assume the
> script has to be executable .... so I will need telnet access.  I tried
> (instead) to use a perl script I have that does ftp (including site->chmod)
> -- assuming I can't telnet.  Anyway, I use this script all the time for work
> and I CAN connect to my ISP from Unix and list files..... but when I tried
> running the "equivalent" perl script I have, it wouldnt even let me log in
> (but did connect at least).  Is this a firewall problem?  And if so, why
> would native FTP still work?  (again, I was only using perl/ftp to do a
> chmod).
>
> I'll call my ISP to get other questions answered.
>
> Thanks again,
>
> Jeff

That is a pretty big leap, involving file permissions, etc.  You should
definitely telnet into your directory.  Some FTP clients can be really srewy when
handling chmod.  System commands will work much better over telnet.  You can also
test the Perl installation much more easily that way.  One thing I've done in
this situation is to make a sister directory to the one in which I have my CGI
script, and make it group writable [chmod 660].  Then, presuming your web server
runs with group permissions, it, [and all your neighbors on the ISP, maybe] can
write to files in this directory.

basedir
   cgi
      myscript.cgi
   priv
      secret.dat

This is pretty rudimentary security, but it can at least help you get your foot
in the water.

I'd also suggest doing some simple CGI first, before you start doing work that
would require permissions beyond those given to world.  One problem at a time.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to