Is it possible to configue Pure-fptd to use a temporary filename during upload?

At the moment files that are uploaded are given their final name from the very start of the upload. I would like it to have temporary name until the file is completely transfered. First then should the file get its final name. Preferably the file would not be visible in the file listing during upload.

The only setting I've seen and tried is the notruncate but it assumes that there is a file present but I might have missed some other vital option.


No, you would have to implement a temporary filename during uploads in the FTP client, followed by a rename command.

You could upload to temp file starting with a . dot and use the PureFTP switch --prohibitdotfilesread to prevent downloading during the upload, then rename to the final file name which should be atomic.


Yes, NoTruncate does what you need.

Despite the wording in the configuration file, this option does not require a file with the same name to exist on the server.

To enable it:

  • in Pure-FTPD 1.0.29 (on Fedora) you would set in /etc/pure-ftpd/pureftpd.conf:

NoTruncate yes

  • in Pure-FTPD 1.0.36 (on Ubuntu) you would create a file called NoTruncate in /etc/pure-ftpd/conf/ and set its content to yes.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

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