安装一个vsftp都有问题(Version: 3.0.2-14ubuntu1),提示530 错误,之后修改配置如下(红色):
# cat /etc/pam.d/vsftpd
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
......
@include common-account
@include common-session
@include common-auth
auth required pam_unix.so(原是pam_shells.so)
之后遇到:
500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
在/etc/vsftpd.conf中添加:
allow_writeable_chroot=YES
注:如果是扩展vsftp,需要添加allow_writable_chroot=YES。