LinuxSir.cn,穿越时空的Linuxsir!

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

vsFTPd 2.0.1使用虚拟用户后虚拟用户无法登陆ftp

[复制链接]
发表于 2005-1-18 18:18:07 | 显示全部楼层 |阅读模式
我的系统是fc3
使用vsFTPd 2.0.1,设置ftp,以前没有设置虚拟用户时,可以用默认的用户登陆,现在设置了三个虚拟用户就无法登陆了

[root@localhost ~]# ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (127.0.0.1:root): admin
331 Please specify the password.
Password:
500 OOPS: unrecognised variable in config file: anon_world_readable_ only
Login failed.
421 Service not available, remote server has closed connection
ftp>
这是怎么回事?
发表于 2005-1-18 18:42:48 | 显示全部楼层
You have not configured your vsftpd.conf properly.  You only allow anonymous user login  but not the local users.
回复 支持 反对

使用道具 举报

发表于 2005-1-18 23:44:14 | 显示全部楼层
配置文件有错哦,是不是前面多了一个空格?
回复 支持 反对

使用道具 举报

发表于 2005-1-18 23:49:33 | 显示全部楼层
发错了,
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-19 02:06:24 | 显示全部楼层
那个错误改正了
现在还是有问题阿
[root@localhost VIRTUAL_USERS]# ftp 127.0.0.1
Connected to 127.0.0.1 (127.0.0.1).
220 (vsFTPd 1.2.1)
Name (127.0.0.1:root): admin
331 Please specify the password.
Password:
500 OOPS: bad bool value in config file for: write_enable
Login failed.
421 Service not available, remote server has closed connection
ftp>
[13]+  Stopped                 ftp 127.0.0.1
[root@localhost VIRTUAL_USERS]# ftp 127.0.0.1
Connected to 127.0.0.1 (127.0.0.1).
220 (vsFTPd 1.2.1)
Name (127.0.0.1:root): download
331 Please specify the password.
Password:
500 OOPS: bad bool value in config file for: anon_world_readable_only
Login failed.
421 Service not available, remote server has closed connection
ftp>
[14]+  Stopped                 ftp 127.0.0.1
[root@localhost VIRTUAL_USERS]# ftp 127.0.0.1
Connected to 127.0.0.1 (127.0.0.1).
220 (vsFTPd 1.2.1)
Name (127.0.0.1:root): upload
331 Please specify the password.
Password:
500 OOPS: bad bool value in config file for: write_enable
Login failed.
421 Service not available, remote server has closed connection
ftp>
[15]+  Stopped                 ftp 127.0.0.1
找了半天,没有发现新的错误,还是有问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-19 02:07:49 | 显示全部楼层
我的vsftpd.conf如下:
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
listen=YES
guest_enable=YES
guest_username=virtual
pasv_min_port=30000
pasv_max_port=30999
pam_service_name=ftp.vu
anon_world_readable_only=NO
user_config_dir=/etc/vsftpd_user_conf
初学vsftpd还希望大家多多帮忙
回复 支持 反对

使用道具 举报

发表于 2005-1-19 12:36:29 | 显示全部楼层
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
listen=YES
guest_enable=YES
guest_username=virtual
#pasv_min_port=30000
#pasv_max_port=30999
pam_service_name=ftp.vu
#anon_world_readable_only=NO
user_config_dir=/etc/vsftpd_user_conf


把那三行注释掉试试
你把ftp.vu及vsftpd_user_conf的内容贴上来看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-19 13:56:17 | 显示全部楼层
还是不行
我的ftp.vu内容如下:
auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
account required /lib/security/pam_userdb.so db=/etc/vsftpd_login

我在/etc/vsftpd_user_conf里的文件为:admin ,upload ,download
admin的内容为:
anon_world_readable_only=NO
write_enable=YES
anon_upload_enable=YES
anon_other_write_enable=YES
anon_mkdir_write_enable=YES

download里的内容为:
anon_world_readable_only=NO

upload里的内容为:
anon_world_readable_only=NO
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
回复 支持 反对

使用道具 举报

发表于 2005-6-8 15:47:41 | 显示全部楼层
看看XINETD服务里的VSFTP是不是也开了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-9 13:26:56 | 显示全部楼层
问题已经解决了的
呵呵,还是谢谢张泛舟 啊
回复 支持 反对

使用道具 举报

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

本版积分规则

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