LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Preventing FTP download and upload the same file simultaneously (https://www.linuxquestions.org/questions/linux-networking-3/preventing-ftp-download-and-upload-the-same-file-simultaneously-357251/)

benw 08-26-2005 10:59 AM

Preventing FTP download and upload the same file simultaneously
 
Hi everyone,

We are running a PureFTP server on Red Hat 8. Our customers upload rather large data files to our box. We then have programs then will try to download these files throughout the day. The problem arises when the same file is being downloaded while it is being uploaded at the same time. We then get a file that is not complete. We are also able to move or copy the file while it is being uploaded.

My question is:

Is this a Linux OS behavior - you can copy/move a file while it is still being transferred? Or is this the PureFTP server issue? I tried doing the same thing in Windows (with a Windows FTP server) and it won't allow me to download the file while it is being uploaded.

Any other suggestions what I can do to solve this problem?

Thanks,
Ben

Half_Elf 08-26-2005 12:32 PM

Quote:

Is this a Linux OS behavior - you can copy/move a file while it is still being transferred? Or is this the PureFTP server issue?
It's a Linux OS behavior. You can move/rename/delete/blow up files while they are in use. In fact I _REALLY_ like this behavior. :)
I agree that in your case it is somewhat an headache... I am not aware of any function in pure-ftpd that would prevent users to download files that are being uploaded (but take a look at their documentation/forum just in case). However, it is possible to run a script after an upload/download in pure-ftpd. You could use this to change the right/owership of a file or to move the file somewhere else maybe??

benw 08-29-2005 08:34 AM

Thanks. It looks like the latest version of PureFTPd will solve this problem.


All times are GMT -5. The time now is 04:52 PM.