Django FTP服务器550没有足够的权限错误

时间:2015-01-07 06:03:09

标签: python django ftp django-ftpserver

我正在使用Django FTP server,它使用Django的用户身份验证。

我可以使用FileZilla创建的ascoounts进行日志记录

但是我无法列出目录conte或上传,获得以下错误

Status: Connecting to 10.3.0.139:10021...
Status: Connection established, waiting for welcome message...
Response:   220 pyftpdlib 1.4.0 ready.
Command:    USER LdDXorZEgytTevVIfbYmegwWlVeTPP
Response:   331 Username ok, send password.
Command:    PASS ******
Response:   230 welcome.
Command:    OPTS UTF8 ON
Response:   501 Invalid argument.
Command:    OPTS MLST type;perm;size;modify;unix.mode;unix.uid;unix.gid;
Response:   200 MLST OPTS type;perm;size;modify;unix.mode;unix.uid;unix.gid;
Status: Connected
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/" is the current directory.
Command:    TYPE I
Response:   200 Type set to: Binary.
Command:    PASV
Response:   227 Entering passive mode (10,3,0,139,137,129).
Command:    MLSD
Response:   550 Not enough privileges.
Error:  Failed to retrieve directory listing

任何想法?我为用户主目录设置了777权限

1 个答案:

答案 0 :(得分:1)

FTP用户需要添加到任何FTP用户组,并且该组需要elradfmw权限。

您可以从Django管理面板的Django FTP组部分设置它。