apt install vsftpd -y
mkdir /ftphome
useradd -d /ftphome ftpuser
passwd ftpuser
chown ftpuser:ftpuser /ftphome -R
- vi /etc/vsftpd.chroot_list
插入
ftpuser
- vi /etc/vsftpd.conf
write_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
systemctl restart vsftpd