`

linux 下安装 vsftp 图解

阅读更多
VSFTPD的文件结构是很简洁的,主要包括:
/usr/sbin/local/vsftpd(tar方式) /usr/sbin/vsftpd(rpm方式)VSFTPD主程序
/etc/rc.d/init.d/vsftpd ---- 启动脚本(rpm安装方式才会有)
/etc/vsftpd.conf(tar方式)/etc/vsftpd/vsftpd.conf(rpm方式)主配置文件
/etc/pam.d/vsftpd(rpm安装方式)---- PAM认证文件(注:tar方式,需手动复制)
/etc/vsftpd.ftpusers(rpm安装方式才有)---- 禁止使用VSFTPD的用户列表文件
/etc/vsftpd.user_list(rpm方式才有)---- 禁止或允许使用VSFTPD的用户列表

1.安装
#rpm -ivh vsftpd-2.0.1-5.i386.rpm
2.配置/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=NO
#
# Uncomment this to allow local users to log in.
########否允许本地用户登陆
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
########设置全局是否可写
write_enable=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
#
# 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=NO
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
##########是否允许匿名用户创建目录
anon_mkdir_write_enable=NO
###########如果设为YES,匿名登入者会被允许更多于上传与建立目录之外的权限,譬如删除
anon_other_write_enable=NO
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
###########进入目录时显示此目录下由message_file选项指定的文本文件
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
#############使用上传/下载日志,日志文件默认为/var/log/vsftpd.log
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_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
########匿名用户上传所有者指定功能需要与下一参数配合使用
chown_uploads=YES
########指定匿名用户上传文件的所有者
chown_username=root
#
# You may override where the log file goes if you like. The default is shown
# below.
############保存日志文件
xferlog_file=/usr/app/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#########日志使用标准xferlog格式
xferlog_std_format=NO
#
# 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
#
# 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 模式下载。默认值为NO
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
########login时的欢迎信息
ftpd_banner= Welcome......
#
# 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=/etc/vsftpd/banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
###########决定vsftpd用户可以执行chroot操作,即改变其家目录操作
chroot_list_enable=NO
#########该文件中列举了可以执行chroot操作的用户名单
chroot_list_file=/etc/vsftpd/chroot_list
###########决定vsftpd的本地用户只能在其家目录
chroot_local_user=YES
##########设置用户登录后所在的目录
local_root=/usr/ftp_home
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in st



注意: 附件中有vsftp的rpm包 及 vsftpd 的完整配置文件下载到/etc/下直接用
0
0
分享到:
评论

相关推荐

    linux 下的vsftp配置

    ### Linux下的vsftp配置 #### 一、Vsftp简介与安装 **Vsftp**(Very Secure FTP)是一款在Linux系统中广泛使用的FTP服务器软件。它提供了高性能、可扩展且安全的文件传输服务。Vsftp的设计重点在于安全性,适用于...

    redhat Linux5 安装vsftp

    一旦VSFTPD配置完成,你需要在iptables防火墙规则中打开FTP端口(通常为20和21),以及数据传输可能使用的端口范围,例如被动模式下的49152-49251。 总的来说,VSFTPD的安装和配置涉及系统管理、网络服务、安全...

    FileZilla linux 上传 vsftp putty

    在Linux环境下,安装和配置vsftp是管理员必须掌握的技能,包括设置用户权限、限制访问目录以及开启SSL连接等。 再者,PuTTY是一款免费的SSH(Secure Shell)客户端,用于远程登录到Linux或Unix服务器。它提供了...

    Linux上vsftp安装包和安装说明

    本文将详细介绍如何在Linux环境下安装和配置vsftp。 首先,我们来看看提供的压缩包文件。`vsftpd-2.0.5-16.el5_4.1.i386.rpm` 是vsftp的一个特定版本的RPM包,适用于基于Red Hat Enterprise Linux 5的系统。RPM是...

    Linux服务器VsFtp安装1

    Linux 服务器 VsFtp 安装配置详解 Linux 服务器是一种常用的服务器操作系统,而 VsFtp 是一种流行的 FTP 服务器软件。本文将详细介绍 Linux 服务器上 VsFtp 的安装、启动、关闭、重启和配置文件设置等内容。 一、...

    Redhat Linux建VSFTP实现Linux与Host机的共享

    ### 构建Red Hat Linux下的VSFTP服务器实现与主机共享 #### 一、概述 本文档将详细介绍如何在Red Hat Linux环境下搭建VSFTP服务器,并通过该服务器实现与主机(通常指Windows系统)之间的资源共享。相较于Samba...

    Linux下VsFTP配置全方案

    Vsftp的PASV mode(被动模式传送)和Port模式及 Linux下VsFTP配置全方案,需要配置Linux下的FTP很有用

    cenos7.4安装vsftp3.0.2.doc

    1. 安装vsftpd 3.0.2 yum install vsftpd-3.0.2-xx.rpm 2. 启动/重启/关闭vsftpd systemctl start vsftpd.service systemctl restart vsftpd.service systemctl stop vsftpd.service

    linux下vsftp的搭建及quota的使用

    ### Linux下vsftp的搭建及quota的使用 #### 一、vsftp的搭建与配置 在Linux环境下构建vsftp服务器并实现quota限制是一项常见的网络管理任务。以下是对给定文件内容的深入解析与扩展。 ##### 1. 安装vsftp工具 在...

    LINUX下vsftp设置

    "LINUX下vsftp设置" vsftpd是一款非常安全且快速的FTP服务器,在UNIX/Linux中广泛应用。相比于本地用户,虚拟用户只是相对于FTP服务器而言才有的用户,虚拟用户只能访问FTP服务器所提供的资源,这大大增强系统本身...

    Linux下的VSFTP服务黑名单白名单的策略配置.pdf

    在Linux环境下,VSFTP通过编辑`/etc/vsftpd/ftpusers`文件来实现这一功能。将需要禁止的用户名添加到文件末尾,例如在上述步骤中,将用户SZJ1添加到文件后,该用户将无法通过FTP登录服务器。当尝试用SZJ1登录时,...

    linux离线安装vsftpd包.zip

    在没有网络连接的情况下,通过离线安装包进行VSFTPD的安装是一个常见需求,特别是对于那些需要在隔离环境或服务器集群中部署FTP服务的管理员而言。以下是一个详细的离线安装步骤,基于提供的描述进行展开。 首先,...

    linux下vsftp安装搭建

    Linux 下 vsftpd 安装搭建 vsftpd 是一个在 Linux 发行版中最受推崇的 FTP 服务器程序,特点是小巧轻快、安全易用。vsftpd 的名字代表”very secure FTP daemon”,安全是它的开发者 Chris Evans 考虑的首要问题之...

    Linux下安装卸载ftp的方法

    3.开始安装:yum install vsftp;(接下来的步骤可能要询问:Is that ok?,直接回应yes就可以了);安装完了会显示 Complete! 4.再次检查ftp是否安装上了:rpm -qa|grep vsftp; 5.检查ftp配置是否开启:chkconfig --list...

    Linux下vsftp配置大全.doc

    Linux下的vsftp(Very Secure FTP)是一款广泛使用的FTP服务器软件,尤其在Unix/Linux环境中因其安全性、稳定性和高效性而备受青睐。这篇文档将详细介绍如何在Linux系统中配置vsftp,包括三种主要的运行模式:匿名...

    Linux_VSFTP服务器详细配置

    ### Linux VSFTP服务器详细配置知识点 #### 一、Linux FTP服务器分类 Linux系统下的FTP服务主要...以上内容覆盖了Linux环境下VSFTP服务器的基本配置方法及相关知识点,对于搭建稳定可靠的FTP服务具有较高的参考价值。

Global site tag (gtag.js) - Google Analytics