CentOS6.6下搭建vsftpd+PAM认证
一、简介
vsftpd 是一个 UNIX 类操作系统上运行的服务器的名字,它可以运行在诸如 Linux、BSD、Solaris、 HP-UNIX等系统上面,是一个完全免费的、开发源代码的ftp服务器软件,支持很多其他的 FTP 服务器所不支持的特征。比如:非常高的安全性需求、带宽限制、良好的可伸缩性、可创建虚拟用户、支持IPv6、速率高等。[2]
vsftpd是一款在Linux发行版中最受推崇的ftp服务器程序。特点是小巧轻快,安全易用。
LINUX下实现FTP服务的软件很多,最常见的有vsftpd,Wu-ftpd和Proftp等。Red Hat Enterprise Linux中默认安装的是vsftpd。
二、vsftpd工作方式
2.1、vsftp工作模式
vsftp分为主动模式和被动模式:
主动模式: Server 20端口>Client
被动模式:Server **端口----- Cilent
w2.2、vsftp用户类型
匿名用户:
ftp 或anonymous
本地用户:
以真实的用户名和密码进行登录,但前提条件是用户在FTP服务器上拥有自己的帐号.用真实帐号登录后,其登录的目录为用户自己的目录,该目录在系统建立帐号时系统就自动创建。
虚拟用户:
账户信息存放在独立的数据库文件或者数据库内;
2.3、vsftp服务
Very secure FTP Daemon
官方网站;http://vsftpd.beasts.org/
服务的程序和脚本:
服务程序:/usr/sbin/vsftpd
启动脚本:/etc.init.d/vsftpd
主配置文件:/etc/vsftpd/vsftpd.conf
2.4、vsftp主配置文件参数说明
[root@woon ~]# vim /etc/vsftpd/vsftpd.conf
# 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.
; 登陆FTP服务器,所提示的欢迎信息
#
# 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
; 若是启用以上两个选项,则可以在/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().
#chroot_local_user=YES
;设置为yes时,用户不能登录到根目录意外的目录
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
; 当登陆FTP服务器时,被列在chroot_list文件中的用户,不可以访问FTP根目录以外的目录。
#
# 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
; 是否可以使用ls R命令
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES
; 此项为YES时,vsftpd运行于stand-alone模式下
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd with two configuration files.
# Make sure, that one of the listen options is commented !!
#listen_ipv6=YES
; ipv6 监听
pam_service_name=vsftpd
; 设置PAM认证服务的配置文件名称,该文件存放在/etc/pam.d/目录下
userlist_enable=YES
; 用户列表中的用户是否允许登录ftp服务器
tcp_wrappers=YES
; tcp_wrqppers作为主机访问控制
此外还有许多参数未出现,列举常用参数
Idle_session_timeout=300 客户端若在300秒之内没有任何操作,则服务器自动断开。
max_clinet=0
最大连接数量(stand-alone模式下)
max_per_ip=0
每个客户端最大连接ftp服务器的连接数
local_max_rate=0
转载于:https://blog.51cto.com/woonli/1616660
CentOS6.6下搭建vsftpd+PAM认证相关推荐
- Centos6.8下搭建SVN服务器
1.Centos6.8下搭建SVN服务器 Subversion是一个自由,开源的版本控制系统.Subversion将文件存放在中心版本库里.这个版本库很像一个普通的文件服务器,不同的是,它可以记录每一 ...
- [IDS]CentOS6.6下搭建基于snort+barnyard2+base的入侵检测系统,超详细!!!
最详细的CentOS6.6下搭建基于snort+barnyard2+base的入侵检测系统 免责声明 一.如果因为使用本文档照成损失(系统崩溃.数据丢失等),作者不承担任何责任. 二.本文档只是个人使 ...
- CentOS6.5下搭建LAMP+FreeRadius+Daloradius Web管理和TP-LINK路由器、H3C交换机连接,实现,上网认证和记账功能
什么是RADIUS服务: RADIUS:(Remote Authentication Dial In User Service)中文名为远程用户拨号认证服务,简称RADIUS,是目前应用最广泛的AAA ...
- CentOS6.8下搭建zookeeper web界面查看工具node-zk-browser
zookeeper的web界面查看工具Node-ZK-Browser的界面是用nodejs写的今天试着搭建了下. 1. 安装nodejs [root@localhost product]# pwd / ...
- centos6.3下搭建LAMP环境
系统:centos6.3_x64 安装包: httpd-2.2.19.tar.gz php-5.4.14.tar.bz2 libmcrypt-2.5.8.tar.gz mcrypt-2.6.8.tar ...
- CentOS6.5下搭建SVN服务器
1.检查是否已安装 rpm -qa | grep subversion 如果要卸载旧版本: yum remove subversion 2.安装 yum install subversion PS:y ...
- centos6.5搭建php网站,Centos6.5下搭建web环境(Apache+mysql+php+phpMyAdmin)
转岗以后因为不太熟练一直没有怎么管理服务器,为了后续工作能够顺利展开,决定将之前的服务器重新搭建,并把某些需求整合避免以后管理起来会凌乱. 首先先把web环境给搭建起来,以下是搭建过程以作后续查证使用 ...
- centos6.5下搭建oracle 11g
为什么80%的码农都做不了架构师?>>> 安装依赖 yum install binutils compat-libstdc++-33 compat-libstdc++-33.i ...
- centos6.5下搭建IHE
1. 需要mesa ,mesa-storage,postgresql安装包,添加MESA_TRAGET环境变量,为mesa的安装路径,在本文档中为 export $MESA_TARGET=/opt ...
- CentOS下安装vsftpd
因为FTP的端口是 两个,一个是固定21端口,还有一个任意端口的数据通道.关键是任意端口不好搞. 首先在vsftpd的配置文件中设置 任意端口的范围 [root@localhost root]# vi ...
最新文章
- 阿里面试题:分库分表无限扩容后的瓶颈以及解决方案
- c++ qt 编译问题求解答
- Struts2拦截器之FileUploadInterceptor
- RHCE 学习笔记(24) - LVM 逻辑卷
- 数据库设计(五)第一范式(1NF)?
- 运动目标跟踪(十五)--WMIL跟踪
- 群体智能优化算法之萤火虫群优化算法(Glowworm Swarm Optimization,GSO)
- sqldeveloper不能启动,显示Unable to create an instance of the Java Virtual Machine...的解决办法...
- Scrapy:爬取豆瓣图书
- exsi 无法打开虚拟机 执行此操作的权限被拒绝[解决]
- rsync同步脚本示例,带有exclude参数说明
- 【论文精读】Deep Rectangling for Image Stitching: A Learning Baseline
- POJ - 1637 Sightseeing tour(混合图欧拉回路的求解--建图跑最大流)
- 抠图扣发丝ps修图扣证件照p图扣毛发
- JAVAWeb开发:Tomcat出现The origin server did not find a current representation for the target reso...的问题
- ukf(无迹卡尔曼滤波)算法的matlab程序.
- Vue详解+实战分析
- NVisual-自动化网络拓扑
- display常用属性值
- Ubuntu20.04 idea/pycharm 搜狗中文输入法不跟随光标问题
热门文章
- 23 个问题 TCP 疑难杂症全解析
- 一篇极好的Git 总结
- 宋宝华:火焰图:全局视野的Linux性能剖析
- Linux设备驱动——内核定时器
- signal、kill、fork
- 阻塞非阻塞、同步异步
- 动态电压与频率调节在降低功耗中的作用
- Java的GUI学习十二(文件的打开和保存)
- 两个excel表格信息合并 自动匹配_别再复制黏贴了,合并两个Excel表格可以很简单!...
- 10米精度NPP净初级生产力数据/NDVI数据/植被类型数据/土地利用数据/降雨气温分布数据/太阳辐射分布数据