ImageVerifierCode 换一换
格式:DOCX , 页数:15 ,大小:30.29KB ,
资源ID:3044341      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/3044341.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(linux 中搭建FTP服务器.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

linux 中搭建FTP服务器.docx

1、linux 中搭建FTP服务器RHEL5中配置vsftpd搭建FTP服务器RPM安装包名:vsftpd-2.0.5-10.el5.i386.rpm (第二张光盘)下载地址:http:/vsftp.beasts.org 源代码最新版本:vsftpd-2.0.5.tar.gz#rpm ivh vsftpd-2.0.5-10.el5.i386.rpm安装rpm程序包#service vsftpd start=/etc/init.d/vsftpd start 启动vsftpd服务 #service vsftpd stop=/etc/init.d/vsftpd stop 停止vsftpd服务#servi

2、ce vsftpd restart=/etc/init.d/vsftpd restart 重启vsftpd服务#service vsftpd status=/etc/init.d/vsftpd status 检查vsftpd服务状态# ntsysv 或 #chkconfig level 35 vsftpd on 更改服务自动加载Vsftpd的配置文件:/etc/vsftpd/vsftpd.conf主配置文件/usr/sbin/vsftpdVsftpd的主程序/etc/rc.d/init.d/vsftpd启动脚本/etc/pam.d/vsftpdPAM认证文件(此文件中file=/etc/vsf

3、tpd/ftpusers字段,指明阻止访问的用户来自/etc/vsftpd/ftpusers文件中的用户)/etc/vsftpd/ftpusers禁止使用vsftpd的用户列表文件。记录不允许访问FTP服务器的用户名单,管理员可以把一些对系统安全有威胁的用户账号记录在此文件中,以免用户从FTP登录后获得大于上传下载操作的权利,而对系统造成损坏。(注意:linux-4中此文件在/etc/目录下)/etc/vsftpd/user_list禁止或允许使用vsftpd的用户列表文件。这个文件中指定的用户缺省情况(即在/etc/vsftpd/vsftpd.conf中设置userlist_deny=YES

4、)下也不能访问FTP服务器,在设置了userlist_deny=NO时,仅允许user_list中指定的用户访问FTP服务器。(注意:linux-4中此文件在/etc/目录下)/var/ftp匿名用户主目录;本地用户主目录为:/home/用户主目录,即登录后进入自己家目录/var/ftp/pub匿名用户的下载目录,此目录需赋权根chmod 1777 pub(1为特殊权限,使上载后无法删除)/etc/logrotate.d/vsftpd.logVsftpd的日志文件vsftpd的主配置文件/etc/vsftpd/vsftpd.conf说明(修改前先备份):# Example config fil

5、e /etc/vsftpd/vsftpd.conf# The default compiled in settings are fairly paranoid. This sample file# loosens things up a bit, to make the ftp daemon more usable.# Please see vsftpd.conf.5 for all compiled in defaults.# READ THIS: This example file is NOT an exhaustive list of vsftpd options.# Please r

6、ead the vsftpd.conf.5 manual page to get a full idea of vsftpds# capabilities.# Allow anonymous FTP? (Beware - allowed by default if you comment this out).anonymous_enable=YES (是否允许匿名登录FTP服务器,默认设置为YES允许,即用户可使用用户名ftp或anonymous进行ftp登录,口令为用户的E-mail地址。如不允许匿名访问去掉前面#并设置为NO)# Uncomment this to allow local

7、users to log in.local_enable=YES (是否允许本地用户(即linux系统中的用户帐号)登录FTP服务器,默认设置为YES允许,本地用户登录后会进入用户主目录,而匿名用户登录后进入匿名用户的下载目录/var/ftp/pub;若只允许匿名用户访问,前面加上#,可阻止本地用户访问FTP服务器。)# Uncomment this to enable any form of FTP write command.write_enable=YES(是否允许本地用户对FTP服务器文件具有写权限,默认设置为YES允许)# Default umask for local users

8、is 077. You may wish to change this to 022,# if your users expect that (022 is used by most other ftpds)#local_umask=022 (或其它值,设置本地用户的文件掩码为缺省022,也可根据个人喜好将其设置为其他值,默认值为077)# Uncomment this to allow the anonymous FTP user to upload files. This only# has an effect if the above global write enable is act

9、ivated. Also, you will# obviously need to create a directory writable by the FTP user.#anon_upload_enable=YES (是否允许匿名用户上传文件,须将write_enable=YES,默认设置为YES允许)# Uncomment this if you want the anonymous FTP user to be able to create# new directories.#anon_mkdir_write_enable=YES(是否允许匿名用户创建新文件夹,默认设置为YES允许)#

10、 Activate directory messages - messages given to remote users when they# go into a certain directory.#dirmessage_enable=YES (是否激活目录欢迎信息功能,当用户用CMD 模式首次访问服务器上某个目录时,FTP服务器将显示欢迎信息,默认情况下,欢迎信息是通过该目录下的.message文件获得的,此文件保存自定义的欢迎信息,由用户自己建立)# Activate logging of uploads/downloads.xferlog_enable=YES (默认值为NO如果启用

11、此选项,系统将会维护记录服务器上传和下载情况的日志文件,默认情况该日志文件为/var/log/vsftpd.log,也可以通过下面的xferlog_file选项对其进行设定。)# Make sure PORT transfer connections originate from port 20 (ftp-data).connect_from_port_20=YES (设定FTP服务器将启用FTP数据端口的连接请求,ftp-data数据传输,21为连接控制端口)# If you want, you can arrange for uploaded anonymous files to be o

12、wned by# a different user. Note! Using root for uploaded files is not# recommended!-注意,不推荐使用root用户上传文件#chown_uploads=YES(设定是否允许改变上传文件的属主,与下面一个设定项配合使用)#chown_username=whoever (设置想要改变的上传文件的属主,如果需要,则输入一个系统用户名,例如可以把上传的文件都改成root属主。whoever:任何人)# You may override where the log file goes if you like. The de

13、fault is shown# below.#xferlog_file=/var/log/vsftpd.log(设定系统维护记录FTP服务器上传和下载情况的日志文件,/var/log/vsftpd.log是默认的,也可以另设其它)# If you want, you can have your log file in standard ftpd xferlog format#xferlog_std_format=YES(如果启用此选项,传输日志文件将以标准xferlog的格式书写,该格式的日志文件默认为/var/log/xferlog,也可以通过xferlog_file选项对其进行设定,默认值

14、为NO)#dual_log_enable(如果添加并启用此选项,将生成两个相似的日志文件,默认在/var/log/xferlog和/var/log/vsftpd.log目录下。前者是wu_ftpd类型的传输日志,可以利用标准日志工具对其进行分析;后者是vsftpd类型的日志)#syslog_enable(如果添加并启用此选项,则原本应该输出到/var/log/vsftpd.log中的日志,将输出到系统日志中)# You may change the default value for timing out an idle session.#idle_session_timeout=600 (设

15、置数据传输中断间隔时间,此语句表示空闲的用户会话中断时间为600秒,即当数据传输结束后,用户连接FTP服务器的时间不应超过600秒,可以根据实际情况对该值进行修改)# You may change the default value for timing out a data connection.#data_connection_timeout=120 (设置数据连接超时时间,该语句表示数据连接超时时间为120秒,可根据实际情况对其个修改)# It is recommended that you define on your system a unique user which the# f

16、tp server can use as a totally isolated and unprivileged user.#nopriv_user=ftpsecure (运行vsftpd需要的非特权系统用户,缺省是nobody)# Enable this and the server will recognise asynchronous ABOR requests. Not# recommended for security (the code is non-trivial). Not enabling it,# however, may confuse older FTP clients.#asy

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1