資源描述:
《linux下設(shè)置ftp及增加SSL服務(wù).doc》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、Linux下vsftpd及SSL的支持一、VSftpd1、設(shè)置vsftpd,默認linux下安裝自帶vsftpd,在命令行下運行setup找到networksetup選中vsftpd屬性;2、修改配置/etc/vsftpd/vsftpd.conf#Exampleconfigfile/etc/vsftpd/vsftpd.conf##Thedefaultcompiledinsettingsarefairlyparanoid.Thissamplefile#loosensthingsupabit,tomakethe
2、ftpdaemonmoreusable.#Pleaseseevsftpd.conf.5forallcompiledindefaults.##READTHIS:ThisexamplefileisNOTanexhaustivelistofvsftpdoptions.#Pleasereadthevsftpd.conf.5manualpagetogetafullideaofvsftpd's#capabilities.##AllowanonymousFTP?(Beware-allowedbydefaultifyouc
3、ommentthisout).anonymous_enable=NO##Uncommentthistoallowlocaluserstologin.local_enable=YES##UncommentthistoenableanyformofFTPwritecommand.write_enable=YES##Defaultumaskforlocalusersis077.Youmaywishtochangethisto022,#ifyourusersexpectthat(022isusedbymostoth
4、erftpd's)local_umask=022##UncommentthistoallowtheanonymousFTPusertouploadfiles.Thisonly#hasaneffectiftheaboveglobalwriteenableisactivated.Also,youwill#obviouslyneedtocreateadirectorywritablebytheFTPuser.anon_upload_enable=NO##Uncommentthisifyouwanttheanony
5、mousFTPusertobeabletocreate#newdirectories.anon_mkdir_write_enable=NO##Activatedirectorymessages-messagesgiventoremoteuserswhenthey#gointoacertaindirectory.dirmessage_enable=YES##Thetargetlogfilecanbevsftpd_log_fileorxferlog_file.#Thisdependsonsettingxferl
6、og_std_formatparameterxferlog_enable=YES##MakesurePORTtransferconnectionsoriginatefromport20(ftp-data).connect_from_port_20=YES##Ifyouwant,youcanarrangeforuploadedanonymousfilestobeownedby#adifferentuser.Note!Using"root"foruploadedfilesisnot#recommended!#c
7、hown_uploads=YES#chown_username=whoever##Thenameoflogfilewhenxferlog_enable=YESandxferlog_std_format=YES#WARNING-changingthisfilenameaffects/etc/logrotate.d/vsftpd.log#xferlog_file=/var/log/xferlog##Switchesbetweenloggingintovsftpd_log_fileandxferlog_filef
8、iles.#NOwritestovsftpd_log_file,YEStoxferlog_filexferlog_std_format=YES##Youmaychangethedefaultvaluefortimingoutanidlesession.#idle_session_timeout=600##Youmaychangethedefaultvaluefortimingoutadataconnection.