【教學】Pure-ftpd 安裝說明 for RedHat 7.3



贊助商連結


ADJ
2002-11-13, 10:53 PM
這篇是 Jerry Huang(二伯) 兄的文章...個人在用過之後...發覺真的滿方便的...
RPM可以很快的就使用...不過這種方式不能夠發揮它強大的功能...如跟LDAP完全結合...跟MySQL結合...要玩這個的話...就只有自己Compiler囉...如果你要使用MySQL做認證方式的話...官方網站還有提供 Web 界面的PHP程式...來幫你做Web的控管...很有趣...

我個人目前是使用虛擬使用者帳戶(virtual-user)的安裝方式並不是與作業的使用者帳戶結合在一起。優點是 ftp 的使用者可以不必是系統的帳戶。另一個優點是使用虛擬使用者帳戶除了可以設定全體的上、下載頻寬、檔案容量等等外,你還可以針對每一個使用者設定個別的上下載頻寬、檔案容量、檔案數、限制連線 ip、允許連線 ip、可連線的時間。當然功能不只這些...等你去發抉吧...

ScreenShot:
http://www.pureftpd.org/ftpwho-mini.png

詳細資料:
Pure-ftpd 安裝說明 for RedHat 7.3 (http://www.adj.idv.tw/server/linux_pureftp.php)

贊助商連結


阿敏
2004-04-10, 06:39 PM
請問為什麼我打
/usr/local/sbin/pure-ftpd (switches)
會出現 Unable to start a standalone server: Address already in use
弄得什麼都無法設定。該怎麼辦呢?請多多指教。謝謝!

阿敏
2004-04-10, 08:21 PM
原來是我沒有先把 PureFTPd 關閉。
但要在 root 為 PureFTPd 設定一些 options 時,在打完指令後,要接著打什麼結束符號呢?不然,我按 enter 後它會跑到下一行,然後什麼也沒有出現,就連那個 # 都出不來。
例如:/usr/local/sbin/pure-ftpd -c 10
「10」的後面還要打什麼?才能真正把設定存下。
還有,該如何為每個用戶設定IP限制呢?因我是裝成 PureFTPd + MySQL,所以是用戶是建立在 MySQL 的資料庫,它內附的 puredb 就不能用了。

repsol
2004-04-12, 11:02 AM
最初由 阿敏 發表
原來是我沒有先把 PureFTPd 關閉。
但要在 root 為 PureFTPd 設定一些 options 時,在打完指令後,要接著打什麼結束符號呢?不然,我按 enter 後它會跑到下一行,然後什麼也沒有出現,就連那個 # 都出不來。
例如:/usr/local/sbin/pure-ftpd -c 10
「10」的後面還要打什麼?才能真正把設定存下。
還有,該如何為每個用戶設定IP限制呢?因我是裝成 PureFTPd + MySQL,所以是用戶是建立在 MySQL 的資料庫,它內附的 puredb 就不能用了。

(1)http://www.pureftpd.org/README
To launch the server, just type the following command:
/usr/local/sbin/pure-ftpd &

(2)http://www.pureftpd.org/README
- '-c <number of clients>': Allow a maximum of clients to be connected. For instance '-c 42' will limit access to simultaneous 42 clients. There is a 50 client limit by default.

- '-C <max connection per ip>': Limit the number of simultanous connections coming from the same IP address. This is yet another very effective way to prevent stupid denial of services and bandwidth starvation by a single user.
It works only when the server is launched in standalone mode (if you use a super-server, it is supposed to do that) . If the server is launched with '-C 2', it doesn't mean that the total number of connections is limited to 2.
But the same client, coming from the same machine (or at least the same IP),can't have more than two simultaneous connections. This feature needs some memory to track IP addresses, but it's recommended to use it.