1、vsftpd介绍
vsftpd是一款在Linux发行版中最受推崇的FTP服务器程序,小巧轻快,安全易用,支持虛拟用户、支持带宽限制等功能。
2、vsftpd安装(linux)
2.1、安装
执行 yum -y install vsftpd 进行安装。
注意:
> rpm -qa l grep vsftpd可通过这个检查是否已经安装vsftpd。
> 默认配置文件在/etc/vsftpd/vsftpd.conf
2.2、创建處拟用户
1、选择在根目录下创建ftp文件夹:mkdir ftpfile, 如:/ftpfile
[root@VM-4-7-centos /]# mkdir ftpfile
2、添加匿名用户:useradd ftpuser -d /ftpfile -s /sbin/nologin
[root@VM-4-7-centos /]# cd ftpfile/
[root@VM-4-7-centos ftpfile]# ll
total 0
[root@VM-4-7-centos ftpfile]# useradd ftpuser -d /ftpfile -s /sbin/nologin
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
[root@VM-4-7-centos ftpfile]# ll
3、修改ftpfile权限:chown -R ftpuser.ftpuser /ftpfile
<