Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254178 - net-ftp/proftpd-1.3.1_rc2-r3 : configuration error
Summary: net-ftp/proftpd-1.3.1_rc2-r3 : configuration error
Status: RESOLVED DUPLICATE of bug 254174
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-08 00:32 UTC by Joe Vitti
Modified: 2009-01-08 01:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Vitti 2009-01-08 00:32:44 UTC
I use a custom configuration for proftpd, and the service is unable to start, saying:

server1 /etc/proftpd# service proftpd start
 * Checking proftpd configuration ...
 * Configuration error: please fix your configuration file (/etc/proftpd/proftpd.conf).

I've checked log files, there is nothing of relevance in any. Attached is my proftpd.conf file.

Reproducible: Always




ServerName                      "vitti1"

ServerType                      inetd
DefaultServer                   on

# Port 21 is the standard FTP port.
Port                            21

# Minimum mod_sql config to avoid excess log messages
#SQLAuthTypes                   Plaintext

ClamLocalSocket                 /var/amavis/clamd.sock
ClamWarn                        on

TimeoutLogin                    120
TimeoutIdle                     600
TimeoutNoTransfer               900
TimeoutStalled                  3600

ServerIdent                     off
IdentLookups                    off
UseReverseDNS                   on
AllowForeignAddress             on
AllowRetrieveRestart            on
Umask                           022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    30
#MaxClientsPerHost              4

# Set the user and group that the server normally runs at.
User                            proftpd
Group                           proftpd

AuthPAM                         on
AuthPAMConfig                   ftp
RequireValidShell               no
DefaultRoot                     ~

#ScoreboardFile                 /var/run/proftpd/proftpd.scoreboard

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                     /var/log/proftpd/access.log WRITE,READ write
ExtendedLog                     /var/log/proftpd/auth.log AUTH auth
TransferLog                     /var/log/proftpd/xferlog

DisplayLogin                    welcome.msg
DisplayChdir                    .message


<Limit LOGIN>
        AllowGroup webusers
        DenyAll

#       TimeoutNoTransfer 0
#       TimeoutIdle 0
</Limit>

# Normally, we want homedir files to be overwriteable.
<Directory ~>
        AllowOverwrite          on
        AllowStoreRestart       on
        <Limit ALL>
                AllowAll
                IgnoreHidden    off
        </Limit>
</Directory>


# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
        User                            ftp
        Group                           ftp
        # We want clients to be able to login with "anonymous" as well as "ftp"
        UserAlias                       anonymous ftp

        # Limit the maximum number of anonymous logins
        MaxClients                      20

        # We want 'welcome.msg' displayed at login, and '.message' displayed
        # in each newly chdired directory.
        DisplayLogin                    welcome.msg
        DisplayChdir                    .message

        # It is a very good idea to allow only filenames containing normal
        # alphanumeric characters for uploads (and not shell code...)
        PathAllowFilter "^[a-zA-Z0-9 _./\-]+$"

        # We don't want .ftpaccess or .htaccess files to be uploaded
        PathDenyFilter "(\.ftp)|(\.ht)[a-z]+$"
        PathDenyFilter "^\."
        PathDenyFilter "^ "
        PathDenyFilter " $"

        <Limit LOGIN>
#               DenyAll
                AllowAll
        </Limit>

        # Limit WRITE everywhere in the anonymous chroot
        <Limit WRITE>
                DenyAll
        </Limit>

#       <Limit READ DIRS>
#               IgnoreHidden            on
#       </Limit>
        <Directory ~ftp/incoming>
                AllowOverwrite          off
                <Limit READ>
                        DenyAll
                        IgnoreHidden    on
                </Limit>
                <Limit STOR MKD>
                        AllowAll
                        IgnoreHidden    on
                </Limit>
                <Limit WRITE DIRS READ>
                        DenyAll
                        IgnoreHidden    on
                </Limit>
                <Limit CWD XCWD CDUP>
                        AllowAll
                        IgnoreHidden    on
                </Limit>
        </Directory>
        <Directory ~ftp/incoming/*>
                AllowOverwrite          off
                <Limit READ LIST>
                        AllowAll
                        IgnoreHidden    on
                </Limit>
                <Limit STOR MKD>
                        AllowAll
                        IgnoreHidden    on
                </Limit>
                <Limit WRITE DIRS>
                        DenyAll
                        IgnoreHidden    on
                </Limit>
                <Limit CWD XCWD CDUP>
                        AllowAll
                        IgnoreHidden    on
                </Limit>
        </Directory>
        <Directory ~ftp>
                <Limit READ LIST>
                        AllowAll
                        IgnoreHidden    on
                </Limit>
        </Directory>

</Anonymous>
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-08 01:36:39 UTC

*** This bug has been marked as a duplicate of bug 254174 ***