Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-13-2004, 01:34 AM   #1
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
quick ftp question

Is there any way to make the default transfer mode for ftp BINARY instead of ASCII? I'm getting kind of sick of spending a whole day trying to transfer a file only to find out that it was transferred in ASCII mode because I'm forgetful and then wasting all that time.

I've looked for a command-line option so that I could set up an alias, but I haven't seen anything yet.
Old 02-13-2004, 07:31 AM   #2
Senior Member
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Yes there is

Go to /etc/vsftpd/vsftpd.conf or some other ftp.conf file whixh you may be using. Look for the option upload_ASCII or something like it and disable it.

Then it will download and upload all files as binary.

Hope this helps
Old 02-13-2004, 09:23 AM   #3
Registered: Aug 2003
Distribution: Dead Rat
Posts: 182

Rep: Reputation: 48
FTP servers and clients exchange some OS information at connection time; if their OSes match they will default to "binary mode" (8-bit wide transfers) and if not they will fall back to ASCII (7-bit).

So linux machines will automagically use binary modes with other *nix type operating systems, unless you have specifically configured them to do otherwise. It's only with dissimilar operating systems (for example, liux & windows, or windows & MVS, etc.) that this problem comes up.

I know that's not really answering your question, but I thought you might like to know why it sometimes defaults to binary mode and other times does not.

As the previous poster noted, you should have a configuration file somewhere for your ftp client; if it is possible to override the mode that's probably the best place to do it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick FTP client question 83K5 Linux - Software 1 05-19-2005 10:10 PM
Quick ftp question: rjcrews Linux - Software 4 01-13-2005 05:22 PM
Easy Quick FTP Server Help cartfanatic39 Linux - Software 3 07-31-2004 09:05 AM
Quick question about ftp embalmedlenin Linux - Newbie 2 01-14-2004 09:01 AM
Some Quick FTP Advice gauge73 Linux - Networking 2 04-22-2003 12:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration