快速业务通道

简单介绍一下linux下的ftp服务及相关配置

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-05-03
ed by most other ftpd''s) local_umask=022 这里是说目录默认权限, 文件的默认权限是666的话那么666-022=644 目录的默认权限是777的话那么777-022=755 这里你把022改大的话,相应的权限会减小的 # # Uncomment this to allow the anonymous FTP user to upload files. This only # has an effect if the above global write enable is activated. Also, you will # obviously need to create a directory writable by the FTP user. #anon_upload_enable=YES 允许匿名上传 # # Uncomment this if you want the anonymous FTP user to be able to create # new directories. #anon_mkdir_write_enable=YES 是否允许匿名用户有创建目录的权利 # # Activate directory messages - messages given to remote users when they # go into a certain directory. dirmessage_enable=YES 是否显示目录说明文件 # # Activate logging of uploads/downloads. xferlog_enable=YES 启用日志 # # Make sure PORT transfer connections originate from port 20 (ftp-data). connect_from_port_20=YES 连接端口 20 # # If you want, you can arrange for uploaded anonymous files to be owned by # a different user. Note! Using "root" for uploaded files is not # recommended! #chown_uploads=YES #chown_username=whoever # # You may override where the log file goes if you like. The default is shown
Empire CMS,phome.net
# below. #xferlog_file=/var/log/vsftpd.log 日志文件存放位置 # # If you want, you can have your log file in standard ftpd xferlog format xferlog_std_format=YES 使用标准的xferlog模式 # # You may change the default value for timing out an idle session. #idle_session_timeout=600 会话超时闲置# # You may change the default value for timing out a data connection. #data_connection_timeout=120 数据连接超时 # # It is recommended that you define on your system a unique user which the # ftp server can use as a totally isolated and unprivileged user. #nopriv_user=ftpsecure # # 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. #async_abor_enable=YES 是否允许运行特殊的ftp命令async # # By default the server will pretend to allow ASCII mode but in fact ignore # the request. Turn on the below options to have the server actually do ASCII # mangling on files when in ASCII mode. # Beware that on some FTP servers, ASCII support allows a denial of service # attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd # predicted this attack and has always been safe, reporting the size of the # raw file. # ASCII mangling is a horrible feature of the protocol. #ascii_upload_enable=YES #ascii_download_enable=YES 使用ASCII的上传和下载 # # You may fully customise the login banner string: #ftpd_banner=Welcome to blah FTP service. 自定义欢迎信息
Empire CMS,phome.net
# # You may specify a file of disallowed anonymous e-mail addresses. Apparently # useful for combatting certain DoS attacks. #deny_email_enable=YES # (default follows) #banned_email_file=/e

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号