成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

ProFtpd下軟件的配置

系統(tǒng) Linux 系統(tǒng)運維
ProFtpd下軟件該如何配置?ProFTPD是個Unix平臺上或是類Unix平臺上(如Linux, FreeBSD...)的FTP服務器程序。它是在自由軟件基金會的版權聲明(GPL)之下開發(fā) 發(fā)布的免費軟件。也可以說,只要任何人遵守GPL版權的聲明,全都可以隨意修改源始碼。本文講述的是ProFtpd下軟件的配置。

ProFtpd軟件該如何配置?ProFTPD是個Unix平臺上或是類Unix平臺上(如Linux, FreeBSD...)的FTP服務器程序。它是在自由軟件基金會的版權聲明(GPL)之下開發(fā) 發(fā)布的免費軟件。也可以說,只要任何人遵守GPL版權的聲明,全都可以隨意修改源始碼。本文講述的是ProFtpd下軟件的配置。

  初始配置文件。默認配置文件的位置為:

  

  1. /usr/local/etc/proftpd.conf (如果文件不存在可以從壓縮包中把配置文件樣例拷貝過來即可)下面逐項分析其中一些常選項:(#后面的部分是注釋)  
  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 的啟動類型,一般使用standalone方式比較簡單,如果訪問量不大,為節(jié)省資源考慮用xinetd偵聽啟動,必須在這里指定。Port 指定FTP的偵聽端口,一般使用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 進程的Umask 值,022與Linux系統(tǒng)得默認值一致。  
  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 進程啟動時的有效用戶ID,處于安全考慮默認的身份是nobody,有一點要指出的是,一般Red Linux 9.0 中默認是沒有nogroup 這個組的,把Group指定為nobody 即可。

  DefaultRoot 選項限制Linux 系統(tǒng)用戶通過FTP方式登錄時將被限制在其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 指定一個連接的超時時間。  
  18.  
  19.   AllowRetriveRestart 和AllowStroeRestart 指定允許斷點續(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的詳細配置方法
  2. ProFTPD的配置文件proftpd.conf
  3. ProFTP下的參數(shù)說明
  4. Porftpd.conf的配置格式
  5. lampp的ProFTPd下新增FTP用戶的方法
  6. Debian下配置ProFTPd服務器
  7. Centos下ProFTPD配置FTP服務器
  8. 用MySQL和Proftpd配置FTP服務器

 

責任編輯:zhaolei 來源: CSDN網(wǎng)
相關推薦

2011-02-22 16:24:30

2011-03-08 17:04:10

ProFTPDUbuntu

2011-02-25 13:41:59

Proftpdanonymous

2011-03-03 10:49:37

Linux配置Proftpd

2011-03-03 13:00:21

2011-02-22 10:08:46

ProFTPD配置

2011-02-23 12:18:28

DebianProFTPd服務器

2011-02-22 14:50:53

ProFTPD

2011-02-23 11:15:21

DebianProFTPd

2011-02-23 10:18:51

CentosProFTPD

2011-02-24 13:15:59

2011-03-08 10:10:37

Linuxproftpd

2011-02-25 14:35:06

ubuntuproftp安裝

2011-02-25 16:39:34

proftpd配置文件

2011-03-03 09:04:25

2011-03-03 14:47:35

2011-03-03 14:47:35

2011-03-07 17:15:52

ProFTPD配置

2011-02-25 14:48:25

ProftpdMySQL

2011-02-23 10:43:17

點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 丁香婷婷综合激情五月色 | 亚洲一区 | 一道本视频 | 国产在线一区二区 | 久久久久久亚洲精品 | 国产在线视频在线观看 | 日韩一区二区福利 | 天天草天天爱 | 久www | av在线免费观看网址 | 少妇性l交大片免费一 | 亚洲精品一区二区 | 能免费看的av | 欧美精产国品一二三区 | 久久亚洲二区 | 成人国产精品久久久 | 亚洲色欧美另类 | 国产真实乱全部视频 | 久久国产亚洲 | 一区二区三区免费在线观看 | 国产黄色小视频在线观看 | 一级特黄色毛片 | 国产精品亚洲一区二区三区在线 | 91天堂 | 国产精品亚洲成在人线 | 日本不卡免费新一二三区 | 日日噜噜噜夜夜爽爽狠狠视频97 | 国产精品69毛片高清亚洲 | 日本在线视 | 日韩一区二区三区在线观看视频 | 亚洲激情在线观看 | 黄色一级大片在线免费看产 | 亚洲午夜精品久久久久久app | 亚洲精品一区中文字幕乱码 | h漫在线观看 | 毛片视频免费 | 日本午夜在线视频 | 国外激情av | 久久久久久免费毛片精品 | 欧美中文在线 | 亚洲精品免费观看 |