先说两个错误
vsftpd: PAM unable to dlopen(/lib/security/pam_userdb.so): /lib/security/pam_userdb.so: cannot open shared object file: No such file or directory
应该是找不到pam_userdb.so. 我们把前面目录删除或你看下pam_userdb.so在那个目录
cat /etc/pam.d/vsftp.vu
----------
auth required pam_userdb.so db=/etc/vsftpd/account
account required pam_userdb.so db=/etc/vsftpd/account
500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
只要在/etc/vsftpd.conf
多加一个设置就可以了
allow_writeable_chroot=YES
/etc/vsftpd.conf文件配置
listen=YES
listen_ipv6=NO
anonymous_enable=NO
local_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
anonymous_enable=NO