2013年10月26日 星期六

[SA] ProFTPd



因為有人推薦 ProFTPd,所以這次就捨棄 PureFTPd 來用用看 ProFTPd 吧。

先來簡介一下 ProFTPd 。

ProFTPD (short for Pro FTP daemon) is a FTP server. ProFTPD is Free and open-source software, compatible to Unix-like systems and Microsoft Windows (via Cygwin). Along with vsftpd and Pure-FTPd, ProFTPD is among the most popular FTP servers in UNIX-like environments today. Compared to those, which focus e.g. on simplicity, speed or security, ProFTPD's primary design goal is to be a highly feature rich FTP server, exposing a large amount of configuration options to the user.

ProFTPd 在 FreeBSD 裏面的位置是 /usr/ports/ftp/proftpd
cd 到那裡然後 make install clean 之後就能順利安裝了:D




接下來
 
# cd /usr/local/etc
# vim proftpd.conf

首先來看看這四行:

 修改 ServerName 使 "" 內和機器 hostname 顯示的相同

ServerType 可選擇 standalone 或是 inetd,standalone 表示獨立啟動的意思, inetd 表示使用 super daemon ,不論是 inetd 或者是 xinetd 均使用這個設定值。








之後存檔離開後:

# touch /var/run/proftpd.scoreboard


再在 /etc/rc.conf 加上

proftpd_enable="YES"


然後就可以

# service proftpd start

來執行 proftpd

如果要開放匿名目錄,就在 /usr/local/etc/proftpd.conf 裏面把
<Anonymous ~ftp>  到 </Anonymous>,前面的#去掉即可,依照需求看看要不要改什麼設定。根據上面的說明,只要把

#DefaultRoot ~

把這行前面的#去掉,就可以限制使用者只能在他的家目錄活動。



Reference:  
Wikipedia
http://tech.seety.org/debian/ProFTPdConf.html
http://linux.vbird.org/linux_server/0410proftpd.php 
http://www.wretch.cc/blog/weiyu/1736268
http://www.proftpd.org/docs/ 
http://www.proftpd.org/docs/configs/anonymous.conf

沒有留言:

張貼留言