2017年2月2日 星期四

VsFTPD設定@CentOS6

CentOS 6 的 VsFTPD 設定


CentOS6 的 VSFTPD 內定規則
  • 匿名者可以下載 , 不能上傳
  • 系統上的使用者不能使用FTP
  • 只在 IPV4 上使用
  • 記錄時使用 UTC 時間, 而非機器的本地時間
修改時, 以 root 身份, 修改 /etc/vsftpd/vsftpd.conf
  • 修改 匿名者不可以使用
# Allow anonymous FTP? (Beware – allowed by default if you comment this out).
# anonymous_enable=YES
anonymous_enable=NO
#
  • 修改成 系統上的使用者不能使用FTP, 可以上傳(寫入)
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
  • 修改成記錄時使用 機器的本地時間, 在最後加上一行
use_localtime=YES

參考資料:
鳥哥的 Linux 私房菜 / 第二十一章、檔案伺服器之三: FTP 伺服器
http://linux.vbird.org/linux_server/0410vsftpd.php

沒有留言:

張貼留言