LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: 昊昊荡荡

用vsftpd建CentOS5.3 FTP服务器无法登陆

[复制链接]
发表于 2009-7-7 17:19:28 | 显示全部楼层
普通用户的登录布尔值设置是:setsebool   -P   ftp_home_dir  on
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-7 18:25:21 | 显示全部楼层
大虾帮我看看这是怎么回事?
ftp> get amsn_received
200 PORT command successful. Consider using PASV.
550 Failed to open file.
回复 支持 反对

使用道具 举报

发表于 2009-7-8 10:25:45 | 显示全部楼层
能连接说明控制口没问题了,查一下你的防火墙规则
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-8 11:35:40 | 显示全部楼层
谢谢Escapes兄的指点!长了不少见识呢!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-8 18:43:34 | 显示全部楼层
Post by Escapes;2004425
能连接说明控制口没问题了,查一下你的防火墙规则


Escapes大哥,我put没有问题,get就存在550 Failed to open file的问题。
看这里的提示,应该是PORT和PASV两种模式的问题,好像是说让我把PORT模式换成PASV模式才行。
回复 支持 反对

使用道具 举报

发表于 2009-7-9 15:19:50 | 显示全部楼层
Post by 昊昊荡荡;2004337
大虾帮我看看这是怎么回事?
ftp> get amsn_received
200 PORT command successful. Consider using PASV.
550 Failed to open file.


防火墙挡住报这种错误
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
get一个不存在的文件报这种错误
227 Entering Passive Mode (192,168,2,254,20,165)
550 Failed to open file.

你可以贴下你的主配文件及防火配置看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-9 17:45:36 | 显示全部楼层
Post by Escapes;2004775
防火墙挡住报这种错误
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
get一个不存在的文件报这种错误
227 Entering Passive Mode (192,168,2,254,20,165)
550 Failed to open file.

你可以贴下你的主配文件及防火配置看看


谢谢大侠指点
我再好好研究学习一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-13 18:57:04 | 显示全部楼层
Post by Escapes;2004775
防火墙挡住报这种错误
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
get一个不存在的文件报这种错误
227 Entering Passive Mode (192,168,2,254,20,165)
550 Failed to open file.

你可以贴下你的主配文件及防火配置看看


你说得太对了,我要get的文件是一个目录,当然会报550的错了!
但是我关了防火墙,为什么每次执行操作都会有200和150的错误呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-13 19:23:58 | 显示全部楼层
请教大虾,CentOS5.3的vsftpd.log文件在哪里,用find / -name  vsftpd.log没找到,在/var/log/下也没有
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表