- 论坛徽章:
- 0
|
本帖最后由 mr_caoke 于 2010-08-06 16:01 编辑
我的虚拟账户配置如下- [root@Linux vsftpd]# grep -v '#' vsftpd.conf
- anonymous_enable=YES
- local_enable=YES
- write_enable=YES
- local_umask=022
- dirmessage_enable=YES
- xferlog_enable=YES
- connect_from_port_20=YES
- xferlog_std_format=YES
- chroot_local_user=YES
- userlist_enable=YES
- listen=YES
- tcp_wrappers=YES
- guest_enable=YES
- guest_username=virtual
- pam_service_name=vsftpd.vu
复制代码- [root@Linux vsftpd]# cat /etc/pam.d/vsftpd.vu
- uth required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login
- account required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login
复制代码 也同样生成了如下文件- db_load -T -t hash -f logins.txt \
- /etc/vsftpd/vsftpd_login.db
复制代码 我的linux版本- [root@Linux vsftpd]# uname -a
- Linux Linux.Learning.com 2.6.9-34.EL #1 Fri Feb 24 16:44:51 EST 2006 i686 athlon i386 GNU/Linux
复制代码 我用客户端工具ftp cute 登陆- *** CuteFTP Pro 6.0 - build Mar 25 2004 ***
- STATUS:> Getting listing ""...
- STATUS:> Connecting to FTP server 10.130.24.121:21 (ip = 10.130.24.121)...
- STATUS:> Socket connected. Waiting for welcome message...
- 220 (vsFTPd 2.0.1)
- STATUS:> Connected. Authenticating...
- COMMAND:> USER mike
- 331 Please specify the password.
- COMMAND:> PASS *****
- 530 Login incorrect.
- ERROR:> Not logged in.
- ERROR:> Can't login. Disconnecting...
复制代码 真实郁闷呀!!! |
|