自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

ProFtpd下軟件的配置

系統(tǒng) Linux 系統(tǒng)運(yùn)維
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下軟件的配置。

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)配置文件的位置為:

  

  1. /usr/local/etc/proftpd.conf (如果文件不存在可以從壓縮包中把配置文件樣例拷貝過(guò)來(lái)即可)下面逐項(xiàng)分析其中一些常選項(xiàng):(#后面的部分是注釋)  
  2.  
  3.   # This is a basic ProFTPD  
  4.  
  5.   configuration file  
  6.  
  7.   (rename it to  
  8.  
  9.   # 'proftpd.conf' for actual use.  
  10.  
  11.   It establishes a single server  
  12.  
  13.   # and a single anonymous login.  
  14.  
  15.   It assumes that you have a user/group  
  16.  
  17.   # "nobody" and "ftp" for normal  
  18.  
  19.   operation and anon.  
  20.  
  21.   ServerName "  
  22.  
  23.   ServerType  
  24.  
  25.   standalone  
  26.  
  27.   DefaultServer  
  28.  
  29.   on  
  30.  
  31.   # Port 21 is the standard FTP port.  
  32.  
  33.   Port 21  
  34.  

  ServerType 指定FTP Server 的啟動(dòng)類型,一般使用standalone方式比較簡(jiǎn)單,如果訪問(wèn)量不大,為節(jié)省資源考慮用xinetd偵聽(tīng)啟動(dòng),必須在這里指定。Port 指定FTP的偵聽(tīng)端口,一般使用21端口

  

  1. # Umask 022 is a good standard  
  2.  
  3.   umask to prevent new dirs and files  
  4.  
  5.   # from being group and world writable.  
  6.  
  7.   Umask 022  
  8.  
  9.   # To prevent DoS attacks, set the  
  10.  
  11.   maximum number of child processes  
  12.  
  13.   # to 30. If you need to allow  
  14.  
  15.   more than 30 concurrent connections  
  16.  
  17.   # at once, simply increase this value.  
  18.  
  19.   Note that this ONLY works  
  20.  
  21.   # in standalone mode, in inetd mode  
  22.  
  23.   you should use an inetd server  
  24.  
  25.   # that allows you to limit maximum  
  26.  
  27.   number of processes per service  
  28.  
  29.   # (such as xinetd).  
  30.  
  31.   MaxInstances 30  
  32.  
  33.   Umask 指定FTP server 進(jìn)程的Umask 值,022與Linux系統(tǒng)得默認(rèn)值一致。  
  34.  
  35.   MaxInstances 指定 FTP server 的最大連接數(shù)。  
  36.  
  37.   # Set the user and group under  
  38.  
  39.   which the server will run.  
  40.  
  41.   User nobody  
  42.  
  43.   Group nogroup  
  44.  
  45.   # To cause every FTP user to be  
  46.  
  47.   "jailed" (chrooted) into their home  
  48.  
  49.   # directory, uncomment this line.  
  50.  
  51.   #DefaultRoot ~  
  52.  
  53.   DefaultRoot  
  54.  

#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 目錄下。

 

  1.  # Set the maximum number of seconds  
  2.  
  3.   a data connection is allowed  
  4.  
  5.   # to "stall" before being aborted.  
  6.  
  7.   #TimeoutStalled 300  
  8.  
  9.   AllowRetrieveRestart on  
  10.  
  11.   AllowStoreRestart on  
  12.  
  13.   # Normally, we want files to be overwriteable.  
  14.  
  15.   AllowOverwrite on  
  16.  
  17.   TimeoutStalled 指定一個(gè)連接的超時(shí)時(shí)間。  
  18.  
  19.   AllowRetriveRestart 和AllowStroeRestart 指定允許斷點(diǎn)續(xù)傳。  
  20.  
  21.   User ftp  
  22.  
  23.   Group ftp  
  24.  
  25.   # We want clients to be able to  
  26.  
  27.   login with "anonymous"  
  28.  
  29.   as well as "ftp"  
  30.  
  31.   UserAlias anonymous ftp  
  32.  
  33.   # Limit the maximum number of anonymous logins  
  34.  
  35.   MaxClients 10  
  36.  
  37.   # We want 'welcome.msg' displayed  
  38.  
  39.   at login, and '.message' displayed  
  40.  
  41.   # in each newly chdired directory.  
  42.  
  43.   DisplayLogin welcome.msg  
  44.  
  45.   DisplayFirstChdir .message  
  46.  
  47.   # Limit WRITE everywhere  
  48.  
  49.   in the anonymous chroot  
  50.  
  51.   DenyAll  

【編輯推薦】

  1. ProFTPD.conf的詳細(xì)配置方法
  2. ProFTPD的配置文件proftpd.conf
  3. ProFTP下的參數(shù)說(shuō)明
  4. Porftpd.conf的配置格式
  5. lampp的ProFTPd下新增FTP用戶的方法
  6. Debian下配置ProFTPd服務(wù)器
  7. Centos下ProFTPD配置FTP服務(wù)器
  8. 用MySQL和Proftpd配置FTP服務(wù)器

 

責(zé)任編輯:zhaolei 來(lái)源: CSDN網(wǎng)
相關(guān)推薦

2011-03-08 17:04:10

ProFTPDUbuntu

2011-02-22 16:24:30

2011-02-25 13:41:59

Proftpdanonymous

2011-03-03 10:49:37

Linux配置Proftpd

2011-02-22 10:08:46

ProFTPD配置

2011-03-03 13:00:21

2011-02-23 12:18:28

DebianProFTPd服務(wù)器

2011-02-22 14:50:53

ProFTPD

2011-02-23 10:18:51

CentosProFTPD

2011-03-08 10:10:37

Linuxproftpd

2011-02-23 11:15:21

DebianProFTPd

2011-02-24 13:15:59

2011-02-25 16:39:34

proftpd配置文件

2011-02-25 14:35:06

ubuntuproftp安裝

2011-03-03 14:47:35

2011-03-03 14:47:35

2011-03-03 09:04:25

2011-03-07 17:15:52

ProFTPD配置

2011-02-25 14:48:25

ProftpdMySQL

2011-02-23 10:43:17

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)