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

ProFtpd下軟件的配置

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

ProFtpd軟件該如何配置?ProFTPD是個Unix平臺上或是類Unix平臺上(如Linux, FreeBSD...)的FTP服務器程序。它是在自由軟件基金會的版權聲明(GPL)之下開發 發布的免費軟件。也可以說,只要任何人遵守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方式比較簡單,如果訪問量不大,為節省資源考慮用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系統得默認值一致。  
  34.  
  35.   MaxInstances 指定 FTP server 的最大連接數。  
  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 系統用戶通過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 指定允許斷點續傳。  
  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下的參數說明
  4. Porftpd.conf的配置格式
  5. lampp的ProFTPd下新增FTP用戶的方法
  6. Debian下配置ProFTPd服務器
  7. Centos下ProFTPD配置FTP服務器
  8. 用MySQL和Proftpd配置FTP服務器

 

責任編輯:zhaolei 來源: CSDN網
相關推薦

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服務器

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-24 14:47:48

ProFTPD
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 精品一区国产 | 中文一区二区 | 蜜臀网 | 日韩手机在线视频 | 一区二区三区在线播放 | 中文字字幕在线中文乱码范文 | 欧美成视频在线观看 | 天天噜天天干 | 色婷婷亚洲国产女人的天堂 | 亚洲精品一区二区三区蜜桃久 | 亚洲免费视频网站 | 夜夜草 | 国产精品成人av | 国产9999精品 | 黄色一级片在线播放 | 精品国产乱码久久久久久久久 | 精品国产一区二区三区久久久蜜月 | 亚洲www啪成人一区二区麻豆 | 久久av资源网 | 国产精品高清一区二区三区 | 婷婷丁香在线视频 | 国产欧美一区二区三区在线看 | 在线黄av | 一级黄色片网站 | 精品国产免费一区二区三区演员表 | 国产在线中文字幕 | www.嫩草 | 国产精品久久久久久久久久免费 | 成人免费视频观看 | 国产精品久久国产精品 | 国产一区二区欧美 | 国产区视频在线观看 | 狠狠综合久久av一区二区老牛 | 午夜国产 | 69热视频在线观看 | 午夜看片网站 | 在线视频 亚洲 | 风间由美一区二区三区在线观看 | 日韩国产中文字幕 | 337p日本欧洲亚洲大胆鲁鲁 | 在线观看国产视频 |