Ok so I'm using theplanet's cloud storage on a theplanet cloud server running centos 5 and using cloudnas to connect to cloud storage. ThePlanet's modified version of cloudnas apparently uses /nirvanix as the data directory instead of /nirvanix/[account name]. I have set up pure-ftpd such that /nirvanix/testuser is the home directory for an ftp account (I had to chmod 777 the "testuser" directory to get pure-ftpd to be able to read/write in that directory).
the pure-ftpd setup actually works pretty well. When I connect using the testuser account, I can see files in that directory, upload new files, rename existing files, create directories, and delete directories over FTP with no issue.
The problem is when I try to delete a file (using FileZilla on windows 7), I get the following response from the server:
Command: DELE test image.gif
Response: 550 Could not delete test image.gif: Invalid argument
If I refresh the file listing, "test image.gif" gets renamed to ".pureftpd-rename.32673.a898a70b" but does not get deleted. The same happens for all other files when I try to delete them (obviously the random numbers/letters are different, though).
I'm pretty sure this isn't a permissions issue because I had already chmodded the whole directory to 777, and if it were, why would uploads, downloads, and renames all work?
I think it has something to do with the way cloudnas caches files. I tried disabling the cache and restarting cloudnas, but I still have the same issue with deleting files over ftp.
I need to figure out whether this is a cloudnas-related issue or a pure-ftpd related issue. If its a problem with my pure-ftpd setup, I'll ask in the appropriate forums on another site. Just want to verify that this isn't some limitation of cloudnas.
FYI I am using mysql-based authentication with pure-ftpd, following this tutorial to the letter except where it deals with home directories:
http://www.howtoforge.com/virtual_hosting_with_pureftpd_and_mysql_centos5.0
thanks for any help :)