A twisted FTP server does not show files after logging in

I run twistd -n ftp --root=/tmp --password-file=/tmp/pass.dat

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

 550 []: No such file or directory. 

Any ideas?

Thanks Miki

+6
source share
1 answer

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

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

means that your FTP login must be the same as your Linux login for the directory "/ home / login" to exist.

+3
source

Source: https://habr.com/ru/post/952395/


All Articles