Figure-ProFTPD
LetProftpdSupports uploadingSfvVerification
This application is widely used in Serv_U. Today we will talk about how to make proftpd support this function.
1. First download an sfv plug-in
Go to http://www.bunker-werk.net/proftpd/developer...1.5.tar.bz2.
2. Compile and install
Tar jvxf ftpsfv-0.1.5.tar.bz2
Cd ftpsfv
./Configure
Make
Make install
# The installation address is/usr/local/ftpsfv by default. You can use -- prefix to specify the installation address.
3. Ftpsfv settings
Vi/usr/local/ftpsfv/etc/ftpexmcm conf
User = root
Group = root
# Users and user groups that enable the ftpexec service can also be specified as nobody, provided that you have the write permission on the sfv. fifo file.
Export ofile =/var/log/sfv. fifo
LogFile = syslog
# If it is set to "none", no log is written.
# Set to "syslog" and write log
Exec =/usr/local/ftpsfv/bin/ftpsfvcheck. pl
# Set it by default.
Vi/usr/local/ftpsfv/bin/ftpsfvcheck. pl
Set according to your needs, such
My $ user = "root"
My $ group = "root"
# Set it to the same as the conf file,
My $ sitename = "ftpSFV ";
# Set it to the ftp site name you want to display.
My @ exclude_dirs = ("");
# This is to set which directories do not need to check the sfv file. Detected by default
4. Proftpd settings
Vi/usr/local/proftpd/etc/proftpd. conf
Add the following settings
Logformat sfv "% m % f
ExtendedLog/var/log/sfv. fifo WRITE sfv
Save and exit
5. Enable ftpsfv
Start ftpxsfv
/Etc/rc. d/init. d/ftpexmcm start
Restart proftpd.
/Etc/rc. d/init. d/proftpd restart
Okay. upload an sfv file and test it. You should be able to see the information.
In general, the sfv plug-in is not very stable. I tried a few times, sometimes it was successful, sometimes it didn't respond, and I don't know why. Please advise
Generally, the sfv file is uploaded first. When the actual file is uploaded, if it is uploaded, the system automatically generates 100% after the upload is complete. If the file is not uploaded, the system automatically determines that the file is a bad file based on sfv and the file will not be downloaded.
It does not matter with the download. This is used to check whether the uploaded files are complete.
Do not ask me how to implement it, but perform md5 verification.
This system is only used for testing and does not need to generate sfv
A little doubt
1 ftpexmcm if the permission is 600, it cannot be called ~
2. If the permission is too large, it may involve security issues. How can this problem occur?
3 "An error occurred while opening sfv. fifo. The file does not exist." Why is the permission too large?
After reading this article, we can be sure that proftpd supports uploading sfv verification! I hope this article will help you!