分页: 1 / 1

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

发表于 : 2008-10-13 23:33
bitpart
如题错误
我说下我的安装过程
大家帮我看看哪里不对 不胜感激
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/

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

发表于 : 2009-06-07 2:01
key232323
看看是不是因为空格问题

vsftpd.conf每一行都严格字符要求的,别直接copy就不管了

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

发表于 : 2009-10-07 21:55
bugle
这东西也是看得我头大现在,不得不承认能精通linux的人都是很有耐心的