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的搭建

關於虛擬用戶我們後續再談!


分享到:


相關文章: