Re: How to bulletproof anon FTP downloads?

From: Alun Jones (alun@texis.com)
Date: 05/20/02


From: alun@texis.com (Alun Jones)
Date: Mon, 20 May 2002 16:59:14 GMT

In article <ac3r09$4o2$1@reader1.panix.com>, bill <bill02115@hotmail.com>
wrote:
>In <9V6F8.7830$ml4.1924654128@newssvr30.news.prodigy.com> alun@texis.com (Alun
> Jones) writes:
>>In nearly a decade of developing and
>>supporting FTP apps, corruption is most often caused by problems in the
>>program, or by the client forgetting to set "binary" mode ("TYPE I")
>
>Hmm. I've been explicitly setting the mode to "ascii". Should I use
>binary mode, even though I'm downloading ASCII files? How come? Is
>binary mode less error prone?

Not in the least, but since FTP clients and servers are supposed to default to
ASCII mode transfers, it's more common that binary files are corrupted than
the other way around.

A quick (and possibly rude) question - do you mean the same by "ASCII files"
as we do? We're talking about files using the lower 7-bit ASCII character
set, often referred to as "plain text files". I've run into a couple of users
that assume that since their computer uses ASCII codes, that all files
destined for that computer are "ASCII files". A word-processing document, for
instance, while you may think of it as a text file, is usually very much a
binary file, and may get significantly corrupted by the translations of an
ASCII mode transfer.

Alun.
~~~~

[Please don't email posters, if a Usenet response is appropriate.]

-- 
Texas Imperial Software   | Try WFTPD, the Windows FTP Server. Find us at
1602 Harvest Moon Place   | http://www.wftpd.com or email alun@texis.com
Cedar Park TX 78613-1419  | VISA/MC accepted.  NT-based sites, be sure to
Fax/Voice +1(512)258-9858 | read details of WFTPD Pro for NT.



Relevant Pages

  • Re: How to bulletproof anon FTP downloads?
    ... corruption is most often caused by problems in the ... I've been explicitly setting the mode to "ascii". ... but since FTP clients and servers are supposed to default to ... ASCII mode transfers, it's more common that binary files are corrupted than ...
    (comp.security.unix)
  • RE: Updating VSFTPD from 1.2.0 to 1.2.1.
    ... # loosens things up a bit, to make the ftp daemon more usable. ... # Uncomment this to allow the anonymous FTP user to upload files. ... # mangling on files when in ASCII mode. ... # Beware that turning on ascii_download_enable enables malicious remote ...
    (Fedora)
  • Cant login to vsftpd as regular user
    ... I can ftp as a anonymous user, but if I try to login as a normal user ie: ... I did make the change using chkconfig to start vsftpd on ... # Uncomment this to allow the anonymous FTP user to upload files. ... # mangling on files when in ASCII mode. ...
    (alt.os.linux)
  • Cant login to vsftpd as regular user
    ... I can ftp as a anonymous user, but if I try to login as a normal user ie: ... I did make the change using chkconfig to start vsftpd on ... # Uncomment this to allow the anonymous FTP user to upload files. ... # mangling on files when in ASCII mode. ...
    (alt.os.linux)
  • HELP setting up anon. vsftpd
    ... # loosens things up a bit, to make the ftp daemon more usable. ... # Uncomment this to allow the anonymous FTP user to upload files. ... # mangling on files when in ASCII mode. ... # Beware that turning on ascii_download_enable enables malicious remote ...
    (alt.os.linux)