vsftpd 登录错误500 OOPS: cannot locate user entry:xxxxxx

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
bitpart
帖子: 11
注册时间: 2008-10-10 22:22

vsftpd 登录错误500 OOPS: cannot locate user entry:xxxxxx

#1

帖子 bitpart » 2008-10-13 23:33

如题错误
我说下我的安装过程
大家帮我看看哪里不对 不胜感激
sudo apt-get install vsftpd
sudo apt-get install db4.6-util
首先安装了这两个
创建/etc/vsftpd/logins.txt
内容
xxxxxx
123456

db4.6_load -T -t hash -f /etc/vsftpd/logins.txt /etc/vsftpd/vsftpd_login.db

将vsftpd_login.db的权限设为只对root可读写,即600
chmod 600 /etc/vsftpd/vsftpd_login.db


在/etc/pam.d目录中建立vsftpd.vu内容如下

auth required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login
account required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login

vsftp.conf内容如下:
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
idle_session_timeout=600
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
secure_chroot_dir=/var/run/vsftpd
user_config_dir=/etc/vsftpd_user_conf
pam_service_name=vsftpd.vu
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
max_clients=20
max_per_ip=15

/etc/vsftpd_user_conf/xxxxxx 内容如下

write_enable=YES
anon_world_readable_only=NO
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
local_root=/www/
key232323
帖子: 1
注册时间: 2009-06-07 2:00

Re: vsftpd 登录错误500 OOPS: cannot locate user entry:xxxxxx

#2

帖子 key232323 » 2009-06-07 2:01

看看是不是因为空格问题

vsftpd.conf每一行都严格字符要求的,别直接copy就不管了
bugle
帖子: 94
注册时间: 2009-09-22 21:26

Re: vsftpd 登录错误500 OOPS: cannot locate user entry:xxxxxx

#3

帖子 bugle » 2009-10-07 21:55

这东西也是看得我头大现在,不得不承认能精通linux的人都是很有耐心的
回复