LinuxSir.cn,穿越时空的Linuxsir!

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

vsftpd无法匿名登录??

[复制链接]
发表于 2010-6-17 16:28:44 | 显示全部楼层 |阅读模式
我的配置文件
listen=YES

anonymous_enable=YES

local_enable=YES

write_enable=YES

use_localtime=YES

xferlog_enable=YES

connect_from_port_20=YES

secure_chroot_dir=/var/run/vsftpd/empty

pam_service_name=vsftpd

rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem

明明已经写上了允许匿名登录吖~
发表于 2010-6-18 01:12:55 | 显示全部楼层
检查一下匿名用户目录的权限对不对。vsftpd这方面要求很严格。另外检查防火墙、路由器端口是否开放。最后三行暂时注掉,试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-6-18 07:42:51 | 显示全部楼层
哦搞定。谢谢拉
回复 支持 反对

使用道具 举报

发表于 2010-6-18 19:33:34 | 显示全部楼层
哦,问题出在哪里?写出来让大家都知道一下好不?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-6-27 10:15:49 | 显示全部楼层
passwd中指定的路径名称要写对,然后指定的路径的权限要设置正确。
man中有说:
       passwd_chroot_enable
              If  enabled, along with chroot_local_user , then a chroot() jail
              location may be specified on a per-user basis. Each user's  jail
              is  derived from their home directory string in /etc/passwd. The
              occurrence of /./ in the home directory string denotes that  the
              jail is at that particular location in the path.

              Default: NO
这个选项不知道有没有用,我添加上去后然后再修改好权限就可以了。
回复 支持 反对

使用道具 举报

发表于 2010-6-28 00:14:53 | 显示全部楼层
Post by 小锐同学;2099925
passwd中指定的路径名称要写对,然后指定的路径的权限要设置正确。
man中有说:
       passwd_chroot_enable
              If  enabled, along with chroot_local_user , then a chroot() jail
              location may be specified on a per-user basis. Each user's  jail
              is  derived from their home directory string in /etc/passwd. The
              occurrence of /./ in the home directory string denotes that  the
              jail is at that particular location in the path.

              Default: NO
这个选项不知道有没有用,我添加上去后然后再修改好权限就可以了。

好像这个选项不是干这个的。
有个anon_root选项,是指定匿名用户根目录的
回复 支持 反对

使用道具 举报

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

本版积分规则

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