I installed vsftp, and then setup the config file as following:
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
chroot_local_user=NO
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
xferlog_file=/var/log/vsftpd.log
anon_root=/var/ftp
local_root=~
and in /etc/vsftpd.chroot_list, I added the users that I allow to log in.
and then restart service:
service vsftpd restart
then when I try to log in, I got this error:
ftp> open 127.0.0.1
Connected to 127.0.0.1.
500 OOPS: child died
I googled, but failed to find the answer.
Please help, thanks!