資源描述:
《vsftp安裝、配置、卸載》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、1.安裝VSFTP1[root@localhostyum-yinstallvsftpd2.配置vsftpd.conf文件[root@localhost~]#vi/etc/vsftpd/vsftpd.conf001#Exampleconfigfile/etc/vsftpd/vsftpd.conf002#003#Thedefaultcompiledinsettingsarefairlyparanoid.Thissamplefile004#loosensthingsupabit,tomaketheftpdaemo
2、nmoreusable.005#Pleasesecvsftpd.conf.5forallcompiledindefaults.006#007#READTHIS:ThisexamplefileisNOTanexhaustivelistofvsftpdoptions.008#Pleasereadthevsftpd.conf.5manualpagetogetafullideaofvsftpd's009#capabilities.010#Oil#AllowanonymousFTP?(Beware-allowedby
3、defaultifyoucommentthisout).012#anonymous_enable=YES013#014#Uncommentthistoallowlocaluserstologin.015local_cnab1c=YES016#017#UncommentthistoenableanyformofFTPwritecommand.018write_enab1e二YES019#020#Defaultumaskforlocalusersis077.Youmaywishtochangethisto022
4、,021#ifyourusersexpectthat(022isusedbymostotherftpd's)022local_umask=022023#024#UncommentthistoallowtheanonymousFTPusertouploadfiles.Thisonly025#hasaneffectiftheaboveglobalwriteenableisactivated.Also,youwill026#obviouslyneedtocreateadirectorywritablebytheF
5、TPuser.027#anon_upload_enable=YES028#029#UncommentthisifyouwemttheanonymousFTPusertobeabletocreate030#newdirectories.031#anon_mkdir_write_enable=YES032#033#Activatedirectorymessages-messagesgiventoremoteuserswhenthey034#gointoacertaindirectory.035dirmcssag
6、c_cnab1c二YES#Thetargetlogfilecanbevsftpdlogfileorxferlogfile.#Thisdependsonsettingxfer1og_std_formatparameterxferlog_enable=YES##MakesurePORTtransferconnectionsoriginatefromport20(ftp-data)?connect_from_port_20=YES#Tfyouwant,youcanarrangeforuploadedanonymo
7、usfi1estobeownedby#adiffcrcntuser?Note!Using"root"foruploadedfilesisnot#rccommcnded!#chown_uploads=YES#chownusername二whoever##Thenamcoflogfilewhonxfcrlog_cneible二YESandxfer1og_std_format=YES#WARNING-changingthisfilenameaffects/etc/logrotate?d/vsftpd.log#xf
8、erlogfi1e二/var/log/xferlog#Switchesbetweenloggingintovsftpdlogfileandxferlog_filefiles.#NOwritestovsftpd_log_file,YEStoxfcrlog_filexferlog_std_format二YES#Youmaychangethedefaultvaluefortimingoutanidlesession.i