LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1093|回复: 7

为什么登录不了我的vsftp?

[复制链接]
发表于 2005-5-27 12:03:15 | 显示全部楼层 |阅读模式
本来已经设置好可以匿名登录了的,结果不知道把哪里给改了一下就登录不进去了,在text模式下显示:

[root@hurray hurray]# ftp 192.168.11.232
Connected to 192.168.11.232 (192.168.11.232).
220 (vsFTPd 1.1.3)
Name (192.168.11.232:hurray): ftp
331 Please specify the password.
Password:
500 OOPS: vsftpd: refusing to run with writable anonymous root
Login failed.
421 Service not available, remote server has closed connection

我的vsftpd.conf文件设置如下:

anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
pam_service_name=vsftpd
userlist_enable=YES
listen=YES
tcp_wrappers=YES

我查了一下,上面的设置应该没有错的。是哪里出问题了阿 ?
顺便问一句,匿名登录的目录一般在/var/ftp/pub,我能更改它的位置吗?
发表于 2005-5-27 13:28:58 | 显示全部楼层
看一下你的/var/ftp/pub的权限是多少?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-27 14:10:14 | 显示全部楼层
权限我自己设定了一下:
chmod 777 /var/ftp/pub
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-27 15:22:58 | 显示全部楼层
哪位大侠指点一下阿,小弟很急阿。
回复 支持 反对

使用道具 举报

发表于 2005-5-27 17:25:40 | 显示全部楼层
我也遇到了这个问题,今天尝试了一下,吧  /var/ftp 目录的写权限去掉,发现可以进入了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-27 18:48:15 | 显示全部楼层
现在能登录ftp了,但是进不了共享目录,郁闷阿

[root@hurray hurray]# ftp 192.168.11.232
Connected to 192.168.11.232 (192.168.11.232).
220 (vsFTPd 1.1.3)
Name (192.168.11.232:hurray): ftp
331 Please specify the password.
Password:
230 Login successful. Have fun.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,11,232,193,242)
150 Here comes the directory listing.
226 Transfer done (but failed to open directory).
回复 支持 反对

使用道具 举报

发表于 2005-5-27 22:16:09 | 显示全部楼层
配置文件中是否有这两句??
guest_enable=XXX
guest_username-XXX
回复 支持 反对

使用道具 举报

发表于 2005-6-6 00:29:15 | 显示全部楼层
请教个问题:
我用的是redhat linux 9.0
   vsftpd-1.1.3-8,现在遇到这样的现象:
   #/sbin/service vsftpd status   结果提示如下:
     vsftpd dead but subsys locked
   #/sbin/service vsftpd stop     结果提示如下:
     shutting down vsftpd          [failed]

我把vsftpd软件卸载后,重新安装,结果还是一样。求各位高手帮帮忙,看看是怎么回事。。。

顺便问一句,匿名登录的目录一般在/var/ftp/pub,我能更改它的位置吗?
qq:384844783
回复 支持 反对

使用道具 举报

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

本版积分规则

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