perl/cgi/file getting

From: Jeff Herbeck (jeffherbeck_at_gmail.com)
Date: 09/26/04


Date: Sat, 25 Sep 2004 19:10:10 -0500
To: beginners@perl.org

Hello,

I am trying to start a "transloading" and webhosting company. This
will allow users to login via apache .htaccess type authentication and
then be able to put a url of a file into a form and the script will
go get that file, download it to the webserver into their html
directory and then be available for world access. I have the security
setup (apache athentication) and I can get their username with
env(REMOTE_USER) but I dont' know what to do from here. I know I want
to use "wget" to get the file, but i can't seem to get it to work in a
script. I am a linux admin, but don't know perl. How can I log in
the http user into linux and go get that file with wget so it will go
in their home directory, which will be their html directory. Can
someone please get me started?

Thanks in advance

Jeff



Relevant Pages

  • Re: perl/cgi/file getting
    ... Jeff Herbeck wrote: ... > will allow users to login via apache .htaccess type authentication and ... I am a linux admin, ... which will be their html directory. ...
    (perl.beginners)
  • Re: how to give user proper permissions to /var/www/html?
    ... "Danny Anderson" wrote in message ... > files into the html directory. ... set everything to be owned by apache (since that is the user that Apache ... Now think about which group should have write permission to the ...
    (linux.redhat)
  • Re: Cant Install Perl as Non-Root
    ... I am running on a remote webserver that uses Apache. ... wget http://perl.com/CPAN/src/stable.tar.gz ... tar zvxf stable.tar.gz ...
    (perl.beginners)
  • mod_python and xml.sax
    ... The import works fine, but creating the parser ... fails, producing no traceback, and no Apache errors, but apparently ... A wget of the URL looks like: ... Connecting to mysite.com:80... ...
    (comp.lang.python)
  • Re: File Permissions
    ... > is in a sandbox which works fine when files are owned by apache. ... exploit in the server, or a script that is accessed through the server, ... > requesting the files with different permissions? ... One can make the HTML directory owned by the author, ...
    (Fedora)