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

Principles in software design

Don’t repeat yourself (DRY)

Keep it simple, stupid(KISS)

Command–query separation(CQS) 

You aren’t gonna need it(YAGNI) 

Law of Demeter (LoD) or principle of least knowledge

SOLID (object-oriented design)

Hollywood Principle

High Cohesion & Low/Loose coupling

Convention over Configuration(CoC)

Separation of Concerns (SoC)

Design by Contract (DbC)

Acyclic Dependencies Principle (ADP)