Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> 電腦軟體教學 >> 伺服器技術 >> 關於伺服器

Linux 學習筆記:ProFTPD 架設 FTP 伺服器實戰(一)—— 安裝與匿名服務配置

編輯:關於伺服器

作者記錄 Red Hat Linux 7.0 學習歷程,選用 ProFTPD 取代預設 Wu-FTP (安全漏洞多),ProFTPD 設定簡單、支援 Stand-alone 模式、安全性更佳,已成主流選擇 (TurboLinux 採用)。

目標

IP 10.0.8.39 配置為 FTP 伺服器,允許 anonymous 匿名登入,限制同網段 10.0.8.* 對 incoming 目錄有寫入權限。

步驟 1:安裝與移除舊服務

  1. 下載 ProFTPD 1.2.1 RPM,注意預設路徑:
    /usr/local/etc/proftpd.conf (配置檔)、/usr/sbin/proftpd (啟動指令)、/usr/doc/proftpd-1.2.1 (文件範例)。
  2. 若已安裝 Wu-FTP,先移除:
    rpm -e anonftp
    rpm -e wu-ftpd
  3. 安裝 ProFTPD RPM。

步驟 2:配置基本匿名服務

  1. 編輯 /usr/local/etc/proftpd.conf,找到 Group nogroup 改為 Group nobody (Red Hat 7.0 無 nogroup 群組)。
  2. 執行 proftpd 啟動 (Stand-alone 模式,較 daemon 模式安全),建議加入 /etc/rc.d/rc.local 開機自啟。
  3. 測試:ftp 10.0.8.39 以 anonymous 登入,正常即成功。
Copyright © Windows教程網 All Rights Reserved