这两天在LINUX下架设了FTP服务器,具体步骤和大家分享一下
我的LINUX发行版本是fedora14, FTP采用vsftpd RPM包形式!
1、安装RPM包
#yum install vsftpd
这样安装比较方便,不用用户太多的配置
在安好该服务之后,用户可以通过修改/etc/rc.d来设置让其是否开机自动运行
也可以通过setup 设置系统服务
2、现在我们看一下vsftpd的配置文件,其存储在/etc/vsftpd/vsftpd.conf
# 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
#是否允许匿名用户登陆FTP 服务器
#
# Uncomment this to allow local users to log in.
local_enable=YES
#是否允许本地用户登陆FTP 服务器,其能正常登陆还需要看pam的配置情况
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#仅仅表示vsftpd接受写命令,能为操作成功还需要看权限设置情况,但设为NO之后,客户端将不能上传文件
#
# 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
#
#初始的权限值
# 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
#
#用户进入目录后的提示信息,保存在.messages方件中
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
#启用日志功能,其默认的存储路径为:/var/log/vsftpd.log,后面有专门的设置参数
# 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
# below.
#xferlog_file=/var/log/vsftpd.log
#此处就为设置日志存放位置
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#日志采用标准模式
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
#如果在600秒内没有请求,则断开,目的是为了减轻服务器的负担
# You may chan |