在使用FTP匿名服务时,使用PUT命令上传文件没问题,但是使用get命令出现 550 Failed to open file,原因是,下载的文件没有权限
问题:
ftp> get 2.txt
local: 2.txt remote: 2.txt
227 Entering Passive Mode (192,168,8,35,231,233).
550 Failed to open file.
解决方法:
cd /var/ftp/pub
chmod 777 2.txt
结果:
ftp> get 2.txt
local: 2.txt remote: 2.txt
227 Entering Passive Mode (192,168,8,35,135,27).
150 Opening BINARY mode data connection for 2.txt (0 bytes).
226 Transfer complete.
问题解决
本文介绍了一种常见的FTP问题,即使用GET命令时出现550Failedtoopenfile错误的原因及解决方法。通过调整远程服务器上的文件权限,成功解决了下载文件的权限问题。

454

被折叠的 条评论
为什么被折叠?



