Aliyun Linux install vsftpd

yum install vsftpd

vi /etc/vsfptd/vsftpd.conf

anonymous_enable=NO
chroot_local_user=YES
pasv_enable=Yes
pasv_max_port=20100
pasv_min_port=20090

vi /etc/vsfptd/ftpusers, /etc/vsftpd/user_list, remove root user.

# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

service vsftpd restart

Advertisements