Centos6.7下vsftp的搭建

一、配置匿名登陆ftp服务

1、查看当前服务器是否存在vsftp

Centos6.7下vsftp的搭建

2、 创建用于文件上传的用户

Centos6.7下vsftp的搭建

3、yum安装

Centos6.7下vsftp的搭建

4、启动vsftp

Centos6.7下vsftp的搭建

5.修改配置文件

Centos6.7下vsftp的搭建

anonymous_enable=YES:启用匿名访问

anon_umask=022:匿名用户所上传文件的权限掩码

anon_root=/var/ftp:匿名用户的 FTP 根目录

anon_upload_enable=YES:允许上传文件

anon_mkdir_write_enable=YES:允许创建目录

anon_other_write_enable=YES:开放其他写入权

anon_max_rate=0:限制最大传输速率(字节/秒)

6、重动vsftp

Centos6.7下vsftp的搭建

7、访问ftp测试。

Centos6.7下vsftp的搭建

二、配置系统用户登陆ftp服务

配置步骤

1、修改配置文件

Centos6.7下vsftp的搭建

local_enable=YES:是否启用本地系统用户

local_umask=022:本地用户所上传文件的权限掩码

local_root=/var/ftp:设置本地用户的 FTP 根目录

chroot_local_user=YES:是否将用户禁锢在主目录

local_max_rate=0:限制最大传输速率(字节/秒)

2、重动vsftp

Centos6.7下vsftp的搭建

3、访问ftp测试:

Centos6.7下vsftp的搭建
Centos6.7下vsftp的搭建

关于虚拟用户我们后续再谈!


分享到:


相關文章: