欢迎来到天天文库
浏览记录
ID:1788426
大小:117.50 KB
页数:13页
时间:2017-11-13
《linux ftp(vsftp)架构配置详细教程》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、1、vsftpd安装[root@linux01~]#mkdir/media/cdrom[root@linux01~]#mount-tiso9660/dev/cdrom/media/cdrom #挂载镜像mount:blockdevice/dev/cdromiswrite-protected,mountingread-only[root@linux01~]#cd/media/cdrom/Server #进入软件包目录[root@linux01Server]#[root@linux01Server]#rpm-qa
2、grep^v
3、sftpd #查询相关已经安装的软件包[root@linux01Server]#ls
4、grepvsftpd* #查询当前路径下安装包vsftpd-2.0.5-12.el5.i386.rpm[root@linux01Server]#rpm-ivhvsftpd-2.0.5-12.el5.i386.rpm #安装软件包i安装v输出详细信息h进度warning:vsftpd-2.0.5-12.el5.i386.rpm:HeaderV3DSAsignature:NOKEY,keyID37017186Preparing...#####
5、######################################[100%]1:vsftpd###########################################[100%][root@linux01Server]#rpm-qa
6、grep^vsftpd #再次查询相关已经安装的软件包vsftpd-2.0.5-12.el5[root@linux01Server]#cd[root@linux01~]#rpm-qlvsftpd
7、grepetc #查询etc中与vsftpd相关的文件/etc/logro
8、tate.d/vsftpd.log/etc/pam.d/vsftpd/etc/rc.d/init.d/vsftpd/etc/vsftpd/etc/vsftpd/ftpusers/etc/vsftpd/user_list/etc/vsftpd/vsftpd.conf/etc/vsftpd/vsftpd_conf_migrate.sh[root@linux01~]#2、、/etc/vsftpd/vsftpd.conf文件配置[root@linux01Server]#cat/etc/vsftp/vsftpd.conf #读取原文
9、,默认配置cat:/etc/vsftp/vsftpd.conf:Nosuchfileordirectory[root@linux01Server]#cat/etc/vsftpd/vsftpd.conf#Exampleconfigfile/etc/vsftpd/vsftpd.conf##Thedefaultcompiledinsettingsarefairlyparanoid.Thissamplefile#loosensthingsupabit,tomaketheftpdaemonmoreusable.#Pleaseseev
10、sftpd.conf.5forallcompiledindefaults.##READTHIS:ThisexamplefileisNOTanexhaustivelistofvsftpdoptions.#Pleasereadthevsftpd.conf.5manualpagetogetafullideaofvsftpd's#capabilities.##AllowanonymousFTP?(Beware-allowedbydefaultifyoucommentthisout).anonymous_enable=YES #允许
11、匿名登录##Uncommentthistoallowlocaluserstologin.local_enable=YES #允许本地帐户登录##UncommentthistoenableanyformofFTPwritecommand.write_enable=YES #开放对本地用户的写权限##Defaultumaskforlocalusersis077.Youmaywishtochangethisto022,#ifyourusersexpectthat(022isusedbymostotherftpd's)local_
12、umask=022 #本地用户的文件生成掩码##UncommentthistoallowtheanonymousFTPusertouploadfiles.Thisonly#hasaneffectiftheaboveglobalwriteenableisactivated.Also,youwill#obv
此文档下载收益归作者所有