Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twisted FTP server does not show files after login

I'm running twistd -n ftp --root=/tmp --password-file=/tmp/pass.dat

I can connect with ftp ftp://localhost:2121 and run ls. However if I login, and try the same ls then I get the following error:

550 []: No such file or directory.

Any ideas?

Thanks, Miki

like image 794
lazy1 Avatar asked Aug 23 '13 21:08

lazy1


People also ask

What is FTP server login?

An FTP (File Transfer Protocol) login allows you to create other users that can upload files to your server. They can be limited to a directory and will not have access to your ACC. You can also use FTPS with the additional FTP logins for increased security.

How do I log into an FTP port?

You need to open your Internet browser and start typing the FTP Server's Hostname (or IP Address) and the FTP port number (in case the FTP Server is utilizing a separate port than the actual default port "21" for the FTP connections) in the address box and press Enter.


1 Answers

I had the same problem until I found this in bugtracer: http://twistedmatrix.com/trac/ticket/4494 This code

avatar = FTPShell(filepath.FilePath("/home/" + avatarId))

means that your FTP login should be the same as your Linux login, so that "/home/login" directory would exist.

like image 124
doesnt_matter Avatar answered Oct 23 '22 18:10

doesnt_matter