欢迎来到天天文库
浏览记录
ID:40569989
大小:35.50 KB
页数:4页
时间:2019-08-04
《vsftp配置文档》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、INSTALL=======Thisfiledetailshowtobuildandinstall/runvsftpdfromthevsftpddistribution.tar.gzfile.Step1)Buildvsftpd.Switchtothedirectorycreatedwhenyouunpackedthevsftpd.tar.gzfile.e.g.:cdvsftpd-1.1.2edit"builddefs.h"tohandlecompile-timesettings(tcp_wrappersbuild,etc).Justtype"make"(andmailmetofixitif
2、itdoesn'tbuild;-).Thisshouldproduceyouavsftpdbinary.Youcantestforthis,e.g.:[chris@localhostvsftpd]$ls-lvsftpd-rwxrwxr-x1chrischris61748Sep2700:26vsftpdStep2)Satisfyvsftpdpre-requisites2a)vsftpdneedstheuser"nobody"inthedefaultconfiguration.Addthisuserincaseitdoesnotalreadyexist.e.g.:[root@localhost
3、root]#useraddnobodyuseradd:usernobodyexists2b)vsftpdneedsthe(empty)directory/usr/share/emptyinthedefaultconfiguration.Addthisdirectoryincaseitdoesnotalreadyexist.e.g.:[root@localhostroot]#mkdir/usr/share/empty/mkdir:cannotcreatedirectory`/usr/share/empty':Fileexists2c)ForanonymousFTP,youwillneedth
4、euser"ftp"toexist,andhaveavalidhomedirectory(whichisNOTownedorwritablebytheuser"ftp").Thefollowingcommandscouldbeusedtosetuptheuser"ftp"ifyoudonothaveone:[root@localhostroot]#mkdir/var/ftp/[root@localhostroot]#useradd-d/var/ftpftp(thenexttwoareusefultoruneveniftheuser"ftp"alreadyexists).[root@loca
5、lhostroot]#chownroot.root/var/ftp[root@localhostroot]#chmodog-w/var/ftpStep3)Installvsftpdconfigfile,executable,manpage,etc.Running"makeinstall"willtrytocopythebinary,manpages,etc.tosomewheresensible.Oryoumightwanttocopythesethingsbyhand,e.g.:cpvsftpd/usr/local/sbin/vsftpdcpvsftpd.conf.5/usr/local
6、/man/man5cpvsftpd.8/usr/local/man/man8"makeinstall"doesn'tcopythesampleconfigfile.Itisrecommendedyoudothis:cpvsftpd.conf/etcStep4)Smoketest(withoutaninetd).vsftpdcanrunstandaloneorviaaninetd(suchasinetdorxinetd).Youwilltypicallygetmorecontrolrunningvsftpdfromaninetd.Butfirstwewillrunitwithout,sowe
7、cancheckthingsaregoingwellsofar.Edit/etc/vsftpd.conf,andaddthislineatthebottom:listen=YESThistellsvsftpditwillNOTberunningfrominetd.Right,nowlet'stryandrunit!Loginasroot.MakesureyouarenotrunningotherFTPservers(or
此文档下载收益归作者所有