首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > VSTS >

linux 上安装 vsftp 图解

2012-08-01 
linux 下安装 vsftp 图解VSFTPD的文件结构是很简洁的,主要包括:/usr/sbin/local/vsftpd(tar方式) /usr/sbi

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.logxferlog_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/下直接用

热点排行