???????????У???????????δ????????FTP?????????????????????????????FTP??????
????FTP??????
????FTP ?????????Э?饗File Transfer Protocol??????д????????壬FTP????????????????????????????????????FTP??????????????????????????????????????????????????????????????????鵵?????????????????????FTP???????????????????????????????????????
????FTP?????HTTP??????????????????????????FTP??????ftp://????????http://
????????? linux ?д? FTP ????
????FTP????????????
????????????FTP???????????????????FTP????????????????????FTP????????????????FTP??????????FTP???
?????????????????????????e??????????????FTP??????????????????????????????????????????vsftpd???ftp????
????VSFTPD??????????????FTP???????????????VSFTPD?????????????“?????????very secure??”?????????????????FTPЭ????????
???????????????????????и?????????????????????????磺SFTP?????OpenSSH????FTPЭ???????????????????????ú??????
??????? rpm ???VSFTPD??
???????????????????????????н????п?????VSFTPD??
????dnf -y install vsftpd
??????? deb ???VSFTPD??
???????????????????????????н????п?????VSFTPD??
????sudo apt-get install vsftpd
??????Arch ?а??VSFTPD??
???????????????????????????н????п?????VSFTPD??
????sudo apt-get install vsftpd
????????FTP????
??????????VSFTPD????????/etc/vsftpd.conf????????С???????????????з??????????????????????????У????????Щ????????????????????man???????п????????????? ????????
????man vsftpd.conf
????????????????????FTP??????????λ??/srv/ftp???С?
?????????????
???????????ftp?????????????????????????????????“write_enable”???????????? YES??
????write_enable=YES
????????????????????????
??????????????/etc/passwd?м?????????????ftp????“local_enable”???????????YES??
????local_enable=YES
??????????????
?????????????????????????????????????
????# ??????????????
????anonymous_enable=YES
????# ?????????????????????
????no_anon_password=YES
????# ?????????????????Bytes/second???????
????anon_max_rate=30000
????# ??????????????????
????anon_root=/example/directory/
?????????????Chroot Jail??
?????? LCTT ?????chroot jail????unix???е????????????????????????е?????????????????????????????????????????????????????????????ο?chroot jail??
???????????????????????chroot???????????????????????home?????????????????????/??????????????????????Chroot Jail??:
????chroot_list_enable=YES
????chroot_list_file=/etc/vsftpd.chroot_list
????“chroot_list_file”??????????????????????????/???? LCTT ??????????????????Щ???/????
???????????????ftp??????????????????????????
????sudo systemctl restart vsftpd
???????????????ftp?????????????????????