When you are finished installing VSFTPD with Apt-get Install, start FTP. Then use a workaround that the local user cannot log on.
sudo apt-get remove vsftpd
sudo rm/etc/pam.d/vsftpd
sudo apt-get install vsftpd
Ubuntu enabled Pam, the use of vsftp when used to/etc/pam.d/vsftpd this file (the default source installation will not have this file), so in addition to anonymous users outside the local user can not log on. So as long as the deletion is possible.
Then attach the contents of my configuration file:
1 Listen=yes
2 Anonymous_enable=no
3 Local_enable=yes
4 Write_enable=yes
5 Dirmessage_enable=yes
6 Use_localtime=yes
7 Xferlog_enable=yes
8 Connect_from_port_20=yes
9 Chroot_list_enable=yes
Ten Chroot_list_file=/etc/vsftpd.chroot_list
Secure_chroot_dir=/var/run/vsftpd/empty
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
You can then add the logged-in user to the/etc/vsftpd.chroot_list to log in to your $home using a local user and password.
It is said that the user's/bin/false to be changed to/sbin/nologin not verified, because I created the user when the specified is/sbin/nologin
Ubuntu installs vsftpd after 530 Login incorrect