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 does FTP servers handle concurrent access to the same file, i.e. if one user is updating a file while another is reading the same file? Should I be worried about getting corrupt data? Is it dependent on the FTP server or even the operating system?

share|improve this question
up vote 1 down vote accepted

It depends on the FTP server. For example, Pure-FTPd uses a temporary file and renames it. vsftpd uses locks. I don't know what the various Windows servers do.

Rather than having users upload and download from the same directory, you might want to have them upload to one directory, verify the contents, then move it to a download directory. You might want to scan for viruses, trojans, truncated files, bad image formats, etc.

share|improve this answer
Yeah, that's how I would solve it if it where my private server. This is for a thing at work though where the communication protocol apparently is uploading/retrieving xml files on a FTP server. Thanks for the answer. – Kristian Aug 19 '09 at 16:42

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.