Created attachment 840499 [details]
An ugly, but workable patch.
Description of problem:
Uploading to the anonymous FTP's uploads directory is broken, using Fedora's default configuration. It's a known bug that's been reported upstream; there is a trivial workaround for the meantime.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add -DANONYMOUS_FTP to /etc/sysconfig/proftpd, where indicated.
2. Start proftpd
3. Try to upload something into the uploads directory that the rpm package sets up, by default.
$ ftp localhost
Connected to localhost (::1).
220 FTP Server ready.
Name (localhost:mrsam): anonymous
331 Anonymous login ok, send your complete email address as your password
*** Welcome to this anonymous ftp server! ***
You are user 1 out of a maximum of 10 authorized anonymous logins.
The current time here is Sun Dec 22 17:39:53 2013.
If you experience any problems here, contact : root@localhost
230 Anonymous login ok, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd uploads
250 CWD command successful
ftp> put dummyfile.txt
local: dummyfile.txt remote: dummyfile.txt
229 Entering Extended Passive Mode (|||31213|)
550 dummyfile.txt: Operation not permitted
ftp> 221 Goodbye.
The file should be uploaded into the uploads directory.
It's a bug in the interaction between mod_vroot, which is enabled in the default proftpd.conf that's installed by the Fedora package, and the anonymous FTP configuration.
Until this is fixed upstream, the following patch will produce a workable uploads directory.
Not sure there's ever going to be an upstream fix for this.
I've included the patch in proftpd-1.3.5-5.fc22 and will include it in any further updates for older releases if there are any, but I'm not convinced it's worth doing updates just for this.
proftpd-1.3.5-4.fc21 has been submitted as an update for Fedora 21.
proftpd-1.3.4e-1.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing proftpd-1.3.4e-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
proftpd-1.3.5-4.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
proftpd-1.3.4e-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.