PureftpdIt is a fast, high-quality, and fully functional ftp server. The most important thing is that it supports setting default client encoding. This article describes in detail: pure-ftpd implements ftp permission settings.
Pure-ftpd provides an uploadscript function to trigger a custom script after a file is uploaded.
Just set CallUploadScript yes in the pure-ftpd.conf and then run
/Usr/local/sbin/pure-uploadscript-B-r/usr/local/etc/pure-uploadscript.sh.
The/usr/local/etc/pure-uploadscript.sh is a script written by yourself.
Pure-uploadscript reference:
-B -- daemonize
-G -- gid
-H -- help
-R -- run
-U -- uid
You also need to create a file like this: touch/var/run/pure-ftpd.upload.pipe.
Note that after CallUploadScript yes is used, ftp cannot run automatically. After pure-uploadscript is run, ftp starts to run. The description in this document is:
You must start PURE-FTPD _ FIRST _ and _ THEN _ START PURE-UPLOADSCRIPT.THE reverse order won't WORK.
If you can upload files only, download files cannot be deleted.
Chown-R directory
That's all.
Based on the brief description in this article, we can be certain that it is not difficult to set ftp permissions on pure-ftpd. If you want to use it, hurry up!