ProFtpd下軟件的配置
ProFtpd下軟件該如何配置?ProFTPD是個Unix平臺上或是類Unix平臺上(如Linux, FreeBSD...)的FTP服務器程序。它是在自由軟件基金會的版權聲明(GPL)之下開發 發布的免費軟件。也可以說,只要任何人遵守GPL版權的聲明,全都可以隨意修改源始碼。本文講述的是ProFtpd下軟件的配置。
初始配置文件。默認配置文件的位置為:
- /usr/local/etc/proftpd.conf (如果文件不存在可以從壓縮包中把配置文件樣例拷貝過來即可)下面逐項分析其中一些常選項:(#后面的部分是注釋)
- # This is a basic ProFTPD
- configuration file
- (rename it to
- # 'proftpd.conf' for actual use.
- It establishes a single server
- # and a single anonymous login.
- It assumes that you have a user/group
- # "nobody" and "ftp" for normal
- operation and anon.
- ServerName "
- ServerType
- standalone
- DefaultServer
- on
- # Port 21 is the standard FTP port.
- Port 21
ServerType 指定FTP Server 的啟動類型,一般使用standalone方式比較簡單,如果訪問量不大,為節省資源考慮用xinetd偵聽啟動,必須在這里指定。Port 指定FTP的偵聽端口,一般使用21端口
- # Umask 022 is a good standard
- umask to prevent new dirs and files
- # from being group and world writable.
- Umask 022
- # To prevent DoS attacks, set the
- maximum number of child processes
- # to 30. If you need to allow
- more than 30 concurrent connections
- # at once, simply increase this value.
- Note that this ONLY works
- # in standalone mode, in inetd mode
- you should use an inetd server
- # that allows you to limit maximum
- number of processes per service
- # (such as xinetd).
- MaxInstances 30
- Umask 指定FTP server 進程的Umask 值,022與Linux系統得默認值一致。
- MaxInstances 指定 FTP server 的最大連接數。
- # Set the user and group under
- which the server will run.
- User nobody
- Group nogroup
- # To cause every FTP user to be
- "jailed" (chrooted) into their home
- # directory, uncomment this line.
- #DefaultRoot ~
- DefaultRoot
#p#
User 和Group 指定proftpd 進程啟動時的有效用戶ID,處于安全考慮默認的身份是nobody,有一點要指出的是,一般Red Linux 9.0 中默認是沒有nogroup 這個組的,把Group指定為nobody 即可。
DefaultRoot 選項限制Linux 系統用戶通過FTP方式登錄時將被限制在其home 目錄下。
- # Set the maximum number of seconds
- a data connection is allowed
- # to "stall" before being aborted.
- #TimeoutStalled 300
- AllowRetrieveRestart on
- AllowStoreRestart on
- # Normally, we want files to be overwriteable.
- AllowOverwrite on
- TimeoutStalled 指定一個連接的超時時間。
- AllowRetriveRestart 和AllowStroeRestart 指定允許斷點續傳。
- User ftp
- Group ftp
- # We want clients to be able to
- login with "anonymous"
- as well as "ftp"
- UserAlias anonymous ftp
- # Limit the maximum number of anonymous logins
- MaxClients 10
- # We want 'welcome.msg' displayed
- at login, and '.message' displayed
- # in each newly chdired directory.
- DisplayLogin welcome.msg
- DisplayFirstChdir .message
- # Limit WRITE everywhere
- in the anonymous chroot
- DenyAll
【編輯推薦】
- ProFTPD.conf的詳細配置方法
- ProFTPD的配置文件proftpd.conf
- ProFTP下的參數說明
- Porftpd.conf的配置格式
- lampp的ProFTPd下新增FTP用戶的方法
- Debian下配置ProFTPd服務器
- Centos下ProFTPD配置FTP服務器
- 用MySQL和Proftpd配置FTP服務器