该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
这是我的详细配置, 配置好后防火墙也关了, 服务也重启过了. 可是用windows登录后, 可以连接,但是帐号密码都不能成功验证
vi account.txt
sa
123
sasa
1234
db_load -T -t hash -f ./account.txt /etc/vsftpd/account.db
chmod 600 /etc/vsftpd/account.db
vi /etc/pam.d/vsftp.vu
auth required /lib/security/pam_userdb.so db=/etc/vsftpd/account
account required /lib/security/pam_userdb.so db=/etc/vsftpd/account
useradd -d /home/ftpsite virtual_user
chmod 700 /home/ftpsite
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
xferlog_std_format=YES
chroot_local_user=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
userlist_file=/etc/vsftpd/user_list
tcp_wrappers=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
one_process_model=NO
anon_world_readable_only=NO
guest_enable=YES
guest_username=virtual_user
pam_service_name=vsftp.vu
$ sudo vim ftpusers
# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
news
uucp
operator
games
nobody
sa
sasa
$ sudo vim user_list
#root
bin
daemon
adm
lp
sync
shutdown
halt
news
uucp
operator
games
nobody
sa
sasa