ubuntu 9.10 vsftpd mysql 虚拟用户登陆问题

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
wshj01
帖子: 5
注册时间: 2010-04-28 7:11
送出感谢: 0
接收感谢: 0

ubuntu 9.10 vsftpd mysql 虚拟用户登陆问题

#1

帖子 wshj01 » 2010-07-17 1:34

虚拟机安装了ubuntu 9.10 想在里面练习配置一下vsftpd服务器,安装了vsftpd、mysql-server、libpam-mysql按照网上的教程配置后,用ftp软件登陆时提示:“500 oops:error opening per-user config file”请问这是错在哪里啊?
/etc/vsftpd.conf配置信息:
listen=YES

listen_port=21

anonymous_enable=YES

local_enable=YES

write_enable=NO

local_umask=022

anon_upload_enable=NO

anon_mkdir_write_enable=NO

dirmessage_enable=YES

tcp_wrappers=YES

guest_enable=YES

guest_username=virtual

user_config_dir=/etc/vsftpd_user_config

pasv_min_port=10000

pasv_max_port=10100

use_localtime=YES

max_clients=10

max_per_ip=5

xferlog_enable=YES

connect_from_port_20=YES

xferlog_file=/var/log/vsftpd.log

xferlog_std_format=YES

idle_session_timeout=600

data_connection_timeout=120

ftpd_banner=Welcome to blah FTP service.

chroot_local_user=YES

ls_recurse_enable=YES

secure_chroot_dir=/var/run/vsftpd

pam_service_name=vsftpd

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

rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key

etc/pam.d/vsftpd 信息:
auth required /lib/security/pam_mysql.so user=virtual passwd=virtual host=localhost db=vsftpd table=users usercolumn=name passwdcolumn=passwd crypt=0

account required /lib/security/pam_mysql.so user=virtual passwd=virtual host=localhost db=vsftpd table=users usercolumn=name passwdcolumn=passwd crypt=0
/etc/vsftpd_user_config 中建立用户个人配置文件:
anonymous :
local_root=/home/ftp/anonymous
anon_world_readable_only=YES

normal :
local_root=/home/ftp/uploads
write_enable=YES
download_enable=NO
anon_world_readable_only=NO
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_umask=022

admin :
local_root=/home/ftp
write_enable=YES
anon_world_readable_only=NO
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_umask=022
搞了一个月了,都没弄成,头都大了,请各们大侠们帮帮忙,这里先谢过了!
回复

回到 “服务器基础应用”