ProFtpd下軟件的配置
ProFtpd下軟件該如何配置?ProFTPD是個(gè)Unix平臺(tái)上或是類Unix平臺(tái)上(如Linux, FreeBSD...)的FTP服務(wù)器程序。它是在自由軟件基金會(huì)的版權(quán)聲明(GPL)之下開(kāi)發(fā) 發(fā)布的免費(fèi)軟件。也可以說(shuō),只要任何人遵守GPL版權(quán)的聲明,全都可以隨意修改源始碼。本文講述的是ProFtpd下軟件的配置。
初始配置文件。默認(rèn)配置文件的位置為:
- /usr/local/etc/proftpd.conf (如果文件不存在可以從壓縮包中把配置文件樣例拷貝過(guò)來(lái)即可)下面逐項(xiàng)分析其中一些常選項(xiàng):(#后面的部分是注釋)
- # 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 的啟動(dòng)類型,一般使用standalone方式比較簡(jiǎn)單,如果訪問(wèn)量不大,為節(jié)省資源考慮用xinetd偵聽(tīng)啟動(dòng),必須在這里指定。Port 指定FTP的偵聽(tīng)端口,一般使用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 進(jìn)程的Umask 值,022與Linux系統(tǒng)得默認(rèn)值一致。
- MaxInstances 指定 FTP server 的最大連接數(shù)。
- # 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 進(jìn)程啟動(dòng)時(shí)的有效用戶ID,處于安全考慮默認(rèn)的身份是nobody,有一點(diǎn)要指出的是,一般Red Linux 9.0 中默認(rèn)是沒(méi)有nogroup 這個(gè)組的,把Group指定為nobody 即可。
DefaultRoot 選項(xiàng)限制Linux 系統(tǒng)用戶通過(guò)FTP方式登錄時(shí)將被限制在其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 指定一個(gè)連接的超時(shí)時(shí)間。
- AllowRetriveRestart 和AllowStroeRestart 指定允許斷點(diǎn)續(xù)傳。
- 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的詳細(xì)配置方法
- ProFTPD的配置文件proftpd.conf
- ProFTP下的參數(shù)說(shuō)明
- Porftpd.conf的配置格式
- lampp的ProFTPd下新增FTP用戶的方法
- Debian下配置ProFTPd服務(wù)器
- Centos下ProFTPD配置FTP服務(wù)器
- 用MySQL和Proftpd配置FTP服務(wù)器