详细ftp配置以及说明,可以看看...
【谢谢共享在网络上的朋友,是你们让我这菜菜学到了知识哦,收集网络上最全的服务奉献出来,经过本人操作O(∩_∩)O~,Red Hat5.0系统,】Linux FTP配置文件说明以及实验文档
本篇文章系网络资料,自家整理。用的系统是Red Hat Linux Enterprise Linux 5.0系统,这里谢谢共享的原文作者。O(∩_∩)O谢谢
FTP服务,主配置文件名:vsftpd.conf,包安装完成后,我们可以在/etc/vsftpd/目录下找到该文件。vsftpd.conf为vsftpd服务的主要配置文件,也为核心配置文件。内容和格式简单明了,每一行语句即为一项设定,即可控制服务的一项功能。若是空白行或着是开头为‘#’号的一行,将会被忽略,即不起任何作用。而内容的格式只有一种,
即‘语句选项=参数值’比如:option=value。其中option为语句选项,value为参数值。要注意的是等号两边不能加空格。
同时呢!vsftp服务文件/etc/vsftpd/ftpusers中记录的用户将禁止登陆vsftp服务器。
我们接下来来了解这主配置文件的每一个说明:
Example config file /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 read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
说明:控制是否允许匿名用户登入,YES 为允许匿名登入,NO 为不允许。默认值为yes。
# Uncomment this to allow local users to log in.
local_enable=YES
#
说明:控制是否允许本地用户登入,YES 为允许本地用户登入,NO为不允许。默认值为YES。
# Uncomment this to enable any form of FTP write command.
wirte_enable=YES
#
说明:是否允许登陆用户有写权限,属于全局设置,YES 为允许登录用户有写权限,NO为不允许。默认值为YES。
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
说明:本地用户新增文件时的umask 值,也可以说是FTP上本地的文件权限,默认值为077
# 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
#
说明:设置是否改变匿名用户上传文件(非目录)的属主。Yes为允许上传,no为不允许上传。默认该语句是被注释的,默认值为yes。
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
说明:可创建目录的同时可以在此目录中上传文件。如果设为YES,则允许匿名登入者有新增目录的权限,只有在write_enable=YES时,此项才有效。当然,匿名用户必须要有对上层目录的写入权。默认该语句是被注释的,默认值为yes。
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
说明:切换目录时,显示目录下.message的内容。如果启动这个选项,那么使用者第一次进入一个目录时,会检查该目录下是否有.message这个档案,如果有,则会出现此档案的内容,通常这个档案会放置欢迎话语,或是对该目录的说明。默认值为开启。
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
说明:是否启用上传/下载日志记录。如果启用,则上传与下载的信息将被完整纪录在xferlog_file 所定义的档案中。预设为开启,即yes。
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
说明:启用FTP数据端口的数据连接 。指定FTP使用20端口进行数据传输,默认值为YES。
# 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
说明:是否允许改变上传文件的所有者。默认值为yes。
#chown_username=whoever
#
说明:改变上传文件的所有者为谁?等号后面的参数是制定用户名。
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
说明:设置日志文件名和路径,默认值为/var/log/vsftpd.log。
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
#
说明:使用标准的日志格式。如果启用,则日志文件将会写成xferlog的标准格式,如同wu-ftpd 一般。默认值为yes。
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
说明:用户会话空闲后10分钟。设置多长时间不对FTP服务器进行任何操作,则断开该FTP连接,单位为秒。默认值为600。
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
说明:将数据连接空闲2分钟断开。设置建立FTP数据连接的超时时间,单位为秒。默认值为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
#
说明:为FTP服务器指定一个完全孤立和无特权的用户,即在系统服务中指定一个独特的用户。即指定一个用户,当VSFTPD不想要什么权限时,使用此用户身份。这用户最好是一个专用的用户,而不是用户nobody。在大多数的机器上,nobody用户被用于大量重要的事情。默认值为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.
#async_abor_enable=YES
#
说明:启用时,一个特殊的FTP命令\"async ABOR”将容许使用,一般不用,容易出现问题。只有不正常的FTP客户端要使用这一点。而且....................................... 谢了。。。。。。。
页:
[1]