Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do FTP servers normally handle renaming to a file name that already exists? That is, will the existing to-file be overwritten or will I get an error? Is there some specification about how FTP servers should handle this, or is it OS or implementation dependent?

vsftpd on Linux seems to overwrite, with FileZilla on Vista I get 550 file exists...

share|improve this question
You probably shouldn't cross-post the same question to both SF and SU like that (…). – David Spillett Sep 10 '09 at 10:29
Agreed, but I'm not sure where the question belongs. Was trying to figure out where it's best to post it, but posted on both to see where I got the best answers... – Kristian Sep 10 '09 at 10:51
Not sure why you're asking, since you already tried it. I've never used and ftpd that did anything other than overwrite in that situation though. – Brian Knoblauch Sep 10 '09 at 11:51
up vote 2 down vote accepted

RFC 959 doesn't say anything about this, so I can assume it's implementation-dependent.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.