LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-13-2004, 02:34 AM   #1
gauge73
Member
 
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, 08:31 AM   #2
marghorp
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, 10:23 AM   #3
Medievalist
Member
 
Registered: Aug 2003
Distribution: Dead Rat
Posts: 178

Rep: Reputation: 38
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.
 
  


Reply


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 11:10 PM
Quick ftp question: rjcrews Linux - Software 4 01-13-2005 06:22 PM
Easy Quick FTP Server Help cartfanatic39 Linux - Software 3 07-31-2004 10:05 AM
Quick question about ftp embalmedlenin Linux - Newbie 2 01-14-2004 10:01 AM
Some Quick FTP Advice gauge73 Linux - Networking 2 04-22-2003 01:17 PM


All times are GMT -5. The time now is 06:43 PM.

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