proftpd/proftpd.conf

Sat, 21 May 2011 22:05:42 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 21 May 2011 22:05:42 +0200
changeset 340
870131689a5c
permissions
-rw-r--r--

Correct diverse buildconf of upstream release and reconcile packaging somewhat.
These changes stem from the obvious changes in the latest vendor release, but
from discussions with trolls Daniel and Oswald as well regarding build config.

This commital follows conclusion of buildconf adjustments to allow the new
vendor version to build on Linux AMD64, but is incomplete as many packaging
comments show. The next series of changes focus on Solaris IA32 and reduction
of buildconf adjustments testing old problems comprehensively in anticipation
of discussion at the upcoming Nokia Contributor Summit in Berlin.

     1 ##
     2 ##  proftpd.conf -- ProFTPD Configuration
     3 ##
     5 ServerType            standalone
     6 DefaultServer         off
     7 SocketBindTight       on
     8 Port                  none
    10 MaxInstances          40
    11 User                  @l_nusr@
    12 Group                 @l_ngrp@
    13 Umask                 022 022
    15 UseReverseDNS         off
    16 MultilineRFC2228      on
    17 ShowSymlinks          on
    18 AllowOverwrite        on
    19 MaxLoginAttempts      2
    20 RequireValidShell     yes
    21 ListOptions           "-l"
    23 @l_pam@AuthPAM               on
    24 @l_pam@AuthPAMConfig         proftpd
    25 @l_pam@AuthPAMAuthoritative  off
    26 #PersistentPasswd      off
    28 CommandBufferSize     1023
    29 TimeoutLogin          120
    30 TimeoutNoTransfer     600
    31 TimeoutStalled        600
    32 TimeoutIdle           1200
    34 LogFormat             default "%h %l %u %t \"%r\" %s %b"
    35 LogFormat             auth    "%v [%P] %h %t \"%r\" %s"
    36 LogFormat             write   "%h %l %u %t \"%r\" %s %b"
    37 SystemLog             @l_prefix@/var/proftpd/proftpd.system.log
    38 ScoreboardFile        @l_prefix@/var/proftpd/proftpd.scoreboard
    40 <Global>
    41     ExtendedLog       @l_prefix@/var/proftpd/proftpd.access.log WRITE,READ write
    42     ExtendedLog       @l_prefix@/var/proftpd/proftpd.auth.log   AUTH       auth
    43     TransferLog       @l_prefix@/var/proftpd/proftpd.xfer.log
    44     IdentLookups      off
    45     DeferWelcome      off
    46     DisplayGoAway     @l_prefix@/etc/proftpd/proftpd.msg.goaway
    47     DisplayLogin      @l_prefix@/etc/proftpd/proftpd.msg.login
    48     DisplayChdir      .message true
    49     DisplayReadme     README*
    50     WTmpLog           off
    51 </Global>
    53 <Directory /*>
    54     AllowOverwrite    on
    55 </Directory>
    57 #   sample virtual Anonymous-FTP only server
    58 <VirtualHost 127.0.0.1>
    59     Port              21
    60     PassivePorts      49152 65535
    61     ServerIdent       on "localhost FTP Server (ProFTPD) ready."
    62     ServerAdmin       root@localhost
    63     MaxClients        20
    65     #   allow anonymous logins only
    66     <Limit LOGIN>
    67         DenyAll
    68     </Limit>
    70     #   Anonymous-FTP
    71     <Anonymous @l_prefix@/share/proftpd>
    72         User              @l_nusr@
    73         Group             @l_ngrp@
    74         UserAlias         anonymous @l_nusr@
    75         UserAlias         ftp @l_nusr@
    76         RootLogin         off
    77         UseFtpUsers       off
    78         MaxClients        10 "Sorry, max %m users allowed -- try again later, please."
    79         RequireValidShell off
    80         DisplayGoAway     /.msg.goaway
    81         DisplayLogin      /.msg.login
    82         <Limit LOGIN>
    83             AllowAll
    84         </Limit>
    85         <Limit WRITE>
    86             DenyAll
    87         </Limit>
    88         <Limit READ DIRS>
    89             IgnoreHidden on
    90         </Limit>
    91         #   optionally allow uploads to a particular directory
    92         #<Directory incoming/*>
    93         #    <Limit STOR>
    94         #        AllowAll
    95         #    </Limit>
    96         #    <Limit WRITE DIRS READ>
    97         #        DenyAll
    98         #    </Limit>
    99         #    <Limit CWD XCWD CDUP>
   100         #        AllowAll
   101         #    </Limit>
   102         #</Directory>
   103     </Anonymous>
   104 </VirtualHost>

mercurial