簡單講解下Ubuntu 14.04中安裝配置vsftpd並鎖定目錄的過程。
Linux系統環境
Ubuntu 14.04 LTS
vsftpd安裝
apt-get install vsftpd
配置文件
默認配置文件的位置為 /etc/vsftpd.conf
local_enable=YES //開啟本地系統賬戶登陸 write_enable=YES //當不能創建文件時候,打開這個 local_umask=022 //當上傳的文件沒有讀權限的時候,打開這個 chroot_list_enable=YES //開啟限制列表,這個是開關 chroot_list_file=/etc/vsftpd.chroot_list //限制名單列表,要限制的用戶 local_root=/usr/local/htdocs //指定一個鎖定的目錄
常見問題
500 OOPS: vsftpd: refusing to run with writable root inside chroot
解:所設置的目錄不能有寫權限,把權限設置成755
FTP協議詳解與vsftpd在Linux上的安裝配置 http://www.linuxidc.com/Linux/2016-09/134831.htm
玩轉vsftpd服務器的四大高級配置:http://www.linuxidc.com/Linux/2013-09/90565.htm
vsFTPd配置教程:http://www.linuxidc.com/Linux/2013-09/90562.htm
Ubuntu實用簡單的FTP架設 http://www.linuxidc.com/Linux/2012-02/55346.htm
Ubuntu 上架設FTP服務器和Apache服務器 http://www.linuxidc.com/Linux/2011-04/35295.htm
Ubuntu 13.04 安裝 LAMP\vsftpd\Webmin\phpMyAdmin 服務及設置 http://www.linuxidc.com/Linux/2013-06/86250.htm
RHEL6平台下SeLinux和vsftpd的匿名上傳的簡單案例 http://www.linuxidc.com/Linux/2013-04/82300.htm
Linux系統vsftpd源碼安裝 http://www.linuxidc.com/Linux/2013-03/81475.htm
openSUSE 13.2/13.1 下安裝配置 FTP服務器 vsftpd http://www.linuxidc.com/Linux/2014-12/110070.htm
CentOS7基於虛擬用戶的vsftpd http://www.linuxidc.com/Linux/2016-11/137150.htm