Re: Download files through web browser
Rick Warner <[email protected]>
| Newsgroups | gmane.linux.redhat.release.enigma |
|---|---|
| Message-ID | <Pine.LNX.4.44.0304041530270.1747-100000@aligote.inviosoftware.com> |
On Fri, 4 Apr 2003, HL wrote: > I am pretty new to this type of thing. How I know anonymous ftp setup > properly ? We would like to allow third party to download files through web > browser without doing anything else. What I need to do in order to put it > working? > > > As far as I know, directory files need to be accessed by username and > password through FTP tool. Also I test in Linux, In other words, FTP works for named users .... > 220 xxxxx FTP server (Version wu-2.6.2-5) ready. > Name (xxxxxx): anonymous > 331 Password required for anonymous . > Password: > 530 Login incorrect. > Login failed. This means that anonymous FTP is not setup. Easiest way to get this started is to install the anonftp RPM. Go to the RedHat installation source for your version of RedHat, find the package (anonftp-x-y-z.i386.rpm) and install it. This will setup the home directory for the anonymous FTP user so that the chroot'ed environment will work properly. It used to be that this was based in /home/ftp, but I just checked my RedHat 8.0 system and it sets it up in /var/ftp now. Does not matter, really. Post installation if you want to move it, just move the entire directory structure and change the home dir for the anonymous ftp user in your password file. To recap: 1) Install anonftp RPM from RedHat for the version you are using. Make sure to check updates.redhat.com for an updated version if available. 2) cd ~/ftp . This is the home dir for the anonymous ftp user. This is all the anonymous ftp user will see once they connect. 3) Place your download file/directory somewhere under ~/ftp. Traditional would be under the pub directory. Make sure that it is readable by user ftp, i.e., do the appropriate chown and chmod commands. 4) Try to connect via command line ftp, logging in an anonymous. If all is setup properly, this should work. If it does not work, anonymous ftp is not setup properly and your web browser based download will fail. - rick warner