ITPub博客

首页 > Linux操作系统 > Linux操作系统 > proftpd for linux

proftpd for linux

原创 Linux操作系统 作者:bontonpan 时间:2009-01-30 10:37:44 0 删除 编辑
 This is a basic ProFTPD configuration file (rename it to
      2 # 'proftpd.conf' for actual use.  It establishes a single server
      3 # and a single anonymous login.  It assumes that you have a user/group
      4 # "nobody" and "ftp" for normal operation and anon.
      5
      6 ServerName                      "ProFTPD Default Installation"
      7 ServerType                      standalone
      8 DefaultServer                   on
      9
     10 # Allow FTP resuming.
     11 # Remember to set to off if you have an incoming ftp for upload.
     12 AllowStoreRestart               on
     13
     14 # Port 21 is the standard FTP port.
     15 Port                            21
     16
     17 # Umask 022 is a good standard umask to prevent new dirs and files
     18 # from being group and world writable.
     19 Umask                           022
     20
     21 # To prevent DoS attacks, set the maximum number of child processes
     22 # to 30.  If you need to allow more than 30 concurrent connections
     23 # at once, simply increase this value.  Note that this ONLY works
     24 # in standalone mode, in inetd mode you should use an inetd server
     25 # that allows you to limit maximum number of processes per service
     26 # (such as xinetd).
     27 MaxInstances                    30
     28
     29 # Set the user and group under which the server will run.
     30 User                            nobody
     31 Group                           nogroup
     32
     33 # To cause every FTP user to be "jailed" (chrooted) into their home
     34 # directory, uncomment this line.
     35 #DefaultRoot ~
     36
     37 # Normally, we want files to be overwriteable.
     38 AllowOverwrite          on
     39
     40 # Bar use of SITE CHMOD by default
     41
     42   DenyAll
     43

     44
     45 # Needed for NIS.
     46
     47 PersistentPasswd              off
     48
     49 #
# Default root can be used to put users in a chroot environment.
     61 # As an example if you have a user foo and you want to put foo in /home/foo
     62 # chroot environment you would do this:
     63 #
     64 # DefaultRoot /home/foo foo
     65
     66   User ftp # After anonymous login, daemon runs as user ftp.
     67   Group ftp # After anonymous login, daemon runs as group ftp.
     68   UserAlias anonymous ftp # Client login as 'anonymous' is aliased to 'ftp'.
     69   RequireValidShell off
     70   # Deny write operations to all directories, underneath root-dir
     71   # Default is to allow, so we don't need a for read operations.
     72  
     73    
     74       DenyAll
     75    

     76  

     77  
     78    
     79       DenyAll
     80    

     81    
     82       AllowAll
     83    

     84  

     85


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11754813/viewspace-544776/,如需转载,请注明出处,否则将追究法律责任。

上一篇: nfs for linux
下一篇: openldap configure
请登录后发表评论 登录
全部评论

注册时间:2009-01-30

  • 博文量
    51
  • 访问量
    37190