我在 debian 6.0.6 安装上运行纯 ftpd 的 1.0.28-3+squeeze1:
Running: /usr/sbin/pure-ftpd -l pam -d -u 1000 -O clf:/var/log/pure-ftpd/transfer.log -8 UTF-8 -B
纯 ftp 配置(/etc/pure-ftpd/conf):
==> AltLog <==
clf:/var/log/pure-ftpd/transfer.log
==> FSCharset <==
UTF-8
==> MinUID <==
1000
==> NoTruncate <==
yes
==> PAMAuthentication <==
yes
==> PureDB <==
/etc/pure-ftpd/pureftpd.pdb
==> UnixAuthentication <==
no
==> VerboseLog <==
yes
我希望能够传输文件名中包含空格的文件。目前,例如,我无法使用 Filezilla 传输此类文件(尝试了不同的客户端,结果相同)。
这是尝试上传名为test_import 1.xml的文件时的服务器响应。正如您在下面的日志中看到的那样,只考虑了test_import,其余的都被忽略了。这可能与报价有关,但我不知道要更改什么以及如何更改。
==> /var/log/syslog <==
May 21 11:49:08 server01 pure-ftpd: (?@server02.com) [INFO] upload is now logged in
May 21 11:49:08 server01 pure-ftpd: (upload@server02.com) [DEBUG] Command [cwd] [/home/ftp/temp]
May 21 11:49:08 server01 pure-ftpd: (upload@server02.com) [DEBUG] Command [type] [I]
May 21 11:49:08 server01 pure-ftpd: (upload@server02.com) [DEBUG] Command [pasv] []
May 21 11:49:08 server01 pure-ftpd: (upload@server02.com) [DEBUG] Command [stor] [test_import]
May 21 11:49:08 server01 pure-ftpd: (upload@server02.com) [NOTICE] //home/ftp/temp/test_import uploaded (28 bytes, 76.36KB/sec)
==> /var/log/pure-ftpd/transfer.log <==
server02.com - upload [21/May/2014:11:49:08 +0200] "PUT /home/ftp/temp/test_import" 200 28