ftp - vsftpd - 无法将文件上传到服务器。错误 553

标签 ftp vsftpd

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












想改进这个问题?将问题更新为 on-topic对于堆栈溢出。

8年前关闭。




Improve this question




我已经在 EC2 上安装并配置了 vsftpd。阅读和写作一直在工作,直到我重新启动服务器。我查了常见的嫌疑人chmod -R 777 /home/data_feed , chown -R datafeed:ftpuser /home/data_feed .但仍然无法写入服务器。我唯一得到的是一个神秘的553错误

ftp> put ~/Downloads/test.jpg
local: /Users/ram/Downloads/test.jpg remote: /Users/ram/Downloads/test.jpg
229 Entering Extended Passive Mode (|||12011|).
553 Could not create file.

这是conf文件
ubuntu@******:~$ cat /etc/vsftpd.conf | grep -v ^#
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
nopriv_user=ubuntu
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem
pasv_enable=YES
pasv_max_port=12100
pasv_min_port=12000
port_enable=YES
log_ftp_protocol=YES

这是调试日志
Wed Sep 11 18:58:57 2013 [pid 2] CONNECT: Client "**.***.*.***"
Wed Sep 11 18:58:57 2013 [pid 2] FTP response: Client "**.***.*.***", "220 (vsFTPd 2.3.5)"
Wed Sep 11 18:58:57 2013 [pid 2] FTP command: Client "**.***.*.***", "USER savings_data_feed"
Wed Sep 11 18:58:57 2013 [pid 2] [data_feed] FTP response: Client "**.***.*.***", "331    Please specify the password."
Wed Sep 11 18:59:03 2013 [pid 2] [data_feed] FTP command: Client "**.***.*.***", "PASS <password>"
Wed Sep 11 18:59:03 2013 [pid 1] [data_feed] OK LOGIN: Client "**.***.*.***"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", "230 Login successful."
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP command: Client "**.***.*.***", "SYST"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", "215 UNIX Type: L8"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP command: Client "**.***.*.***", "FEAT"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", "211-Features:"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", " EPRT??"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", " EPSV??"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", " MDTM??"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", " PASV??"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", " REST STREAM??"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", " SIZE??"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", " TVFS??"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", " UTF8??"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", "211 End"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP command: Client "**.***.*.***", "PWD"
Wed Sep 11 18:59:03 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", "257 "/home/data_feed""
Wed Sep 11 18:59:04 2013 [pid 3] [data_feed] FTP command: Client "**.***.*.***", "EPSV"
Wed Sep 11 18:59:04 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", "229 Entering Extended Passive Mode (|||12081|)."
Wed Sep 11 18:59:05 2013 [pid 3] [data_feed] FTP command: Client "**.***.*.***", "LIST"
Wed Sep 11 18:59:05 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", "150 Here comes the directory listing."
Wed Sep 11 18:59:05 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", "226 Directory send OK."
Wed Sep 11 18:59:18 2013 [pid 3] [data_feed] FTP command: Client "**.***.*.***", "TYPE I"
Wed Sep 11 18:59:18 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", "200 Switching to Binary mode."
Wed Sep 11 18:59:18 2013 [pid 3] [data_feed] FTP command: Client "**.***.*.***", "EPSV"
Wed Sep 11 18:59:18 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", "229 Entering Extended Passive Mode (|||12011|)."
Wed Sep 11 18:59:19 2013 [pid 3] [data_feed] FTP command: Client "**.***.*.***", "STOR /Users/ram/Downloads/test.jpg"
Wed Sep 11 18:59:19 2013 [pid 3] [data_feed] FTP response: Client "**.***.*.***", "553 Could not create file."
Wed Sep 11 18:59:19 2013 [pid 3] [data_feed] FAIL UPLOAD: Client "**.***.*.***", "/Users/ram/Downloads/test.jpg", 0.00Kbyte/sec

提前致谢。

最佳答案

您正在指定远程服务器上不存在的完整路径。

ftp> put ~/Downloads/test.jpg
local: /Users/ram/Downloads/test.jpg
remote: /Users/ram/Downloads/test.jpg

看?您可能想要 lcd ~/Downloads然后 put test.jpg , 或切换到允许您为 put 指定完整本地路径的客户端并且仍然只使用基本名称作为远程文件名。

关于ftp - vsftpd - 无法将文件上传到服务器。错误 553,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18749681/

相关文章:

windows - 使用批处理文件遍历列表

ftp - WinSCP:服务器拒绝 SFTP 连接,但它监听 FTP

linux - 为什么不能停止vsftpd服务器?

linux - vsftpd 的 html 代码在哪里/如何生成?

编译 vsftpd 3.0.0 失败

ubuntu - 如何在 Ubuntu 14.10 上将 WinSCP 默认编辑器设置为 Sublime Text?

java - Spring MVC 3.2.8 : FtpInboundFileSynchronizer

apache - 如何在 ftp 任务的构建文件中指定类路径

linux - 无法在 centos 6 上显示来自 vsftpd 服务器的文件

ftp - "Boolean ftp_home_dir not defined"CentOS 7错误