Browse Source

fix scoping

Ralf S. Engelschall 24 years ago
parent
commit
c86cd7166b
1 changed files with 101 additions and 0 deletions
  1. 101 0
      proftpd/proftpd.conf

+ 101 - 0
proftpd/proftpd.conf

@@ -0,0 +1,101 @@
+##
+##  proftpd.conf -- ProFTPD Configuration
+##  Copyright (c) 2001 Ralf S. Engelschall <rse@engelschall.com>
+##
+
+ServerType            standalone
+DefaultServer         off
+SocketBindTight       on
+Port                  none
+
+AuthPAM               on
+AuthPAMConfig         proftpd
+AuthPAMAuthoritative  off
+#PersistentPassword   off
+
+MaxInstances          40
+User                  @l_npusr@
+Group                 @l_npgrp@
+Umask                 022
+
+MultilineRFC2228      on
+ShowSymlinks          on
+AllowOverwrite        on
+MaxLoginAttempts      2
+RequireValidShell     yes
+LsDefaultOptions      "-l"
+
+TimeoutLogin          120
+TimeoutNoTransfer     600
+TimeoutStalled        600
+TimeoutIdle           1200
+
+LogFormat             default "%h %l %u %t \"%r\" %s %b"
+LogFormat             auth    "%v [%P] %h %t \"%r\" %s"
+LogFormat             write   "%h %l %u %t \"%r\" %s %b"
+ExtendedLog           @l_prefix@/var/proftpd/proftpd.access.log WRITE,READ write
+ExtendedLog           @l_prefix@/var/proftpd/proftpd.auth.log   AUTH       auth
+TransferLog           @l_prefix@/var/proftpd/proftpd.xfer.log
+SystemLog             @l_prefix@/var/proftpd/proftpd.system.log
+
+<Global>
+    IdentLookups      off
+    UseReverseDNS     off
+    DeferWelcome      off
+    DisplayGoAway     @l_prefix@/etc/proftpd/proftpd.msg.goaway
+    DisplayLogin      @l_prefix@/etc/proftpd/proftpd.msg.login
+    DisplayFirstChdir .message
+    DisplayReadme     README*
+</Global>
+
+<Directory /*>
+    AllowOverwrite    on
+</Directory>
+
+#   sample virtual Anonymous-FTP only server
+<VirtualHost 127.0.0.1>
+    Port              21
+    ServerIdent       on "localhost FTP Server (ProFTPD) ready."
+    ServerAdmin       root@localhost
+    MaxClients        20
+
+    #   optionally allow anonymous logins only
+    #<Limit LOGIN>
+    #    DenyAll
+    #</Limit>
+
+    #   Anonymous-FTP
+    <Anonymous @l_prefix@/share/proftpd>
+        User              @l_npusr@
+        Group             @l_npgrp@
+        UserAlias         anonymous @l_npusr@
+        UserAlias         ftp @l_npusr@
+        UseFtpUsers       off
+        MaxClients        10 "Sorry, max %m users allowed -- try again later, please."
+        RequireValidShell off
+        DisplayGoAway     /.msg.goaway
+        DisplayLogin      /.msg.login
+        <Limit LOGIN>
+            AllowAll
+        </Limit>
+        <Limit WRITE>
+            DenyAll
+        </Limit>
+        <Limit READ DIRS>
+            IgnoreHidden on
+        </Limit>
+        #   optionally allow uploads to a particular directory
+        #<Directory incoming/*>
+        #    <Limit STOR>
+        #        AllowAll
+        #    </Limit>
+        #    <Limit WRITE DIRS READ>
+        #        DenyAll
+        #    </Limit>
+        #    <Limit CWD XCWD CDUP>
+        #        AllowAll
+        #    </Limit>
+        #</Directory>
+    </Anonymous>
+</VirtualHost>
+