ftp problems

Discussion in 'Installation/Configuration' started by tgansert, May 12, 2006.

  1. tgansert

    tgansert New Member

    Since the install, I am receiving the following errors in /var/log/proftp:

    Code:
    May 12 07:00:01 host.domain.com proftpd[29458] host.domain.com (127.0.0.1[127.0.0.1]): FTP session closed.
    May 12 07:30:02 host.domain.com proftpd[29961] host.domain.com (127.0.0.1[127.0.0.1]): FTP session opened.
    May 12 07:30:02 host.domain.com proftpd[29961] host.domain.com (127.0.0.1[127.0.0.1]): FTP session closed.
    May 12 07:48:15 host.domain.com proftpd[30353] host.domain.com (127.0.0.1[127.0.0.1]): FTP session opened.
    *** glibc detected *** free(): invalid next size (fast): 0x081115d8 ***
    May 12 07:49:53 host.domain.com proftpd[30861] host.domain.com (127.0.0.1[127.0.0.1]): FTP session opened.
    May 12 07:49:53 host.domain.com proftpd[30861] host.domain.com (127.0.0.1[127.0.0.1]): no such user 'impulse'
    May 12 07:49:53 host.domain.com proftpd[30861] host.domain.com (127.0.0.1[127.0.0.1]): USER impulse: no such user found from 127.0.0.1 [127.0.0.1] to 127.0.0.1:21
    May 12 07:49:53 host.domain.com proftpd[30861] host.domain.com (127.0.0.1[127.0.0.1]): Maximum login attempts (1) exceeded
    May 12 07:49:53 host.domain.com proftpd[30861] host.domain.com (127.0.0.1[127.0.0.1]): FTP session closed.
    May 12 07:49:54 host.domain.com proftpd[30869] host.domain.com (127.0.0.1[127.0.0.1]): FTP session opened.
    May 12 07:49:54 host.domain.com proftpd[30869] host.domain.com (127.0.0.1[127.0.0.1]): no such user 'impulse'
    May 12 07:49:54 host.domain.com proftpd[30869] host.domain.com (127.0.0.1[127.0.0.1]): USER impulse: no such user found from 127.0.0.1 [127.0.0.1] to 127.0.0.1:21
    May 12 07:49:54 host.domain.com proftpd[30869] host.domain.com (127.0.0.1[127.0.0.1]): Maximum login attempts (1) exceeded
    May 12 07:49:54 host.domain.com proftpd[30869] host.domain.com (127.0.0.1[127.0.0.1]): FTP session closed.
    May 12 07:50:07 host.domain.com proftpd[30901] host.domain.com (127.0.0.1[127.0.0.1]): FTP session opened.
    *** glibc detected *** corrupted double-linked list: 0x081115f8 ***
    May 12 07:50:07 host.domain.com proftpd[30906] host.domain.com (127.0.0.1[127.0.0.1]): FTP session opened.
    May 12 07:50:07 host.domain.com proftpd[30906] host.domain.com (127.0.0.1[127.0.0.1]): USER ssneed (Login failed): Invalid shell: '/dev/null'
    May 12 07:50:07 host.domain.com proftpd[30906] host.domain.com (127.0.0.1[127.0.0.1]): Maximum login attempts (1) exceeded
    May 12 07:50:07 host.domain.com proftpd[30906] host.domain.com (127.0.0.1[127.0.0.1]): FTP session closed.
    May 12 07:56:38 host.domain.com proftpd[31120] host.domain.com (127.0.0.1[127.0.0.1]): FTP session opened.
    May 12 07:56:38 host.domain.com proftpd[31120] host.domain.com (127.0.0.1[127.0.0.1]): USER ssneed: Login successful.
    May 12 11:56:38 host.domain.com proftpd[31120] host.domain.com (127.0.0.1[127.0.0.1]): FTP session closed.
    May 12 07:56:38 host.domain.com proftpd[31127] host.domain.com (127.0.0.1[127.0.0.1]): FTP session opened.
    *** glibc detected *** corrupted double-linked list: 0x081115e8 ***
    May 12 07:56:44 host.domain.com proftpd[31137] host.domain.com (127.0.0.1[127.0.0.1]): FTP session opened.
    *** glibc detected *** corrupted double-linked list: 0x081115b0 ***
    May 12 08:00:01 host.domain.com proftpd[31228] host.domain.com (127.0.0.1[127.0.0.1]): FTP session opened.
    May 12 08:00:01 host.domain.com proftpd[31228] host.domain.com (127.0.0.1[127.0.0.1]): FTP session closed.
    May 12 08:07:14 host.domain.com proftpd[31419] host.domain.com: Failed binding to 0.0.0.0, port 21: Address already in use
    May 12 08:07:14 host.domain.com proftpd[31419] host.domain.com: Check the ServerType directive to ensure you are configured correctly.
    May 12 08:07:30 host.domain.com proftpd[21723] host.domain.com: ProFTPD killed (signal 15)
    May 12 08:07:30 host.domain.com proftpd[21723] host.domain.com: ProFTPD 1.2.10 standalone mode SHUTDOWN
    May 12 08:07:32 host.domain.com proftpd[31436] host.domain.com: ProFTPD 1.2.10 (stable) (built do mrt 22 18:28:32 CET 2001) standalone mode STARTUP
    May 12 08:07:51 host.domain.com proftpd[31436] host.domain.com: ProFTPD killed (signal 15)
    May 12 08:07:51 host.domain.com proftpd[31436] host.domain.com: ProFTPD 1.2.10 standalone mode SHUTDOWN
    May 12 08:07:54 host.domain.com proftpd[31597] host.domain.com: ProFTPD 1.2.10 (stable) (built do mrt 22 18:28:32 CET 2001) standalone mode STARTUP
    May 12 08:08:14 host.domain.com proftpd[31617] host.domain.com (127.0.0.1[127.0.0.1]): FTP session opened.
    *** glibc detected *** free(): invalid next size (fast): 0x08111598 ***
    
    Can anyone tell me the cause/repair?
     
  2. falko

    falko Super Moderator ISPConfig Developer

     
  3. tgansert

    tgansert New Member

    Code:
    #
    # /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
    # To really apply changes reload proftpd after modifications.
    #
    
    ServerName                      "Debian"
    ServerType standalone
    DeferWelcome                    off
    
    MultilineRFC2228 on
    DefaultServer                   on
    ShowSymlinks                    on
    
    TimeoutNoTransfer 0
    TimeoutStalled 600
    TimeoutIdle 0
    
    DisplayLogin                    welcome.msg
    DisplayFirstChdir               .message
    ListOptions                     "-l"
    
    DenyFilter                      \*.*/
    
    # Uncomment this if you are using NIS or LDAP to retrieve passwords:
    #PersistentPasswd               off
    
    # Uncomment this if you would use TLS module:
    #TLSEngine                      on
    
    # Uncomment this if you would use quota module:
    #Quotas                         on
    
    # Uncomment this if you would use ratio module:
    #Ratios                         on
    
    # Port 21 is the standard FTP port.
    Port                            21
    
    # 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 10
    
    # Set the user and group that the server normally runs at.
    User                            nobody
    Group                           nogroup
    
    # Umask 022 is a good standard umask to prevent new files and dirs
    # (second parm) from being group and world writable.
    Umask                           022  022
    # Normally, we want files to be overwriteable.
    AllowOverwrite                  on
    
    # Delay engine reduces impact of the so-called Timing Attack described in
    # http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
    # It is on by default.
    #DelayEngine                    off
    
    # <VirtualHost host.domain.tld>
    #  ServerName                   "HOST's FTP Server"
    # </VirtualHost>
    # A basic anonymous configuration, no upload directories.
    
    # <Anonymous ~ftp>
    #   User                                ftp
    #   Group                               nogroup
    #   # We want clients to be able to login with "anonymous" as well as "ftp"
    #   UserAlias                   anonymous ftp
    #   # Cosmetic changes, all files belongs to ftp user
    #   DirFakeUser on ftp
    #   DirFakeGroup on ftp
    #
    #   RequireValidShell           off
    #
    #   # Limit the maximum number of anonymous logins
    #   MaxClients                  10
    #
    #   # We want 'welcome.msg' displayed at login, and '.message' displayed
    #   # in each newly chdired directory.
    #   DisplayLogin                        anonyftp.msg
    #   DisplayFirstChdir           .message
    #
    #   # Limit WRITE everywhere in the anonymous chroot
    #   <Directory *>
    #     <Limit WRITE READ STOR DELE>
    #       DenyAll
    #     </Limit>
    #   </Directory>
    #
    #   # Uncomment this if you're brave.
    #   # <Directory incoming>
    #   #   # Umask 022 is a good standard umask to prevent new files and dirs
    #   #   # (second parm) from being group and world writable.
    #   #   Umask                           022  022
    #   #            <Limit READ WRITE>
    #   #            DenyAll
    #   #            </Limit>
    #   #            <Limit STOR>
    #   #            AllowAll
    #   #            </Limit>
    #   # </Directory>
    #
    # </Anonymous>
    <Global>
    DefaultRoot / root
    DefaultRoot / photo1
    DefaultRoot /var/www www-data
    DefaultRoot ~
    DeleteAbortedStores on
    HiddenStor on
    LoginPasswordPrompt off
    RootLogin off
    DisplayConnect /etc/proftpd.mesg
    MaxLoginAttempts 1
    UseFtpUsers on
    AllowRetrieveRestart on
    IdentLookups on
    MaxClientsPerHost 15 "Methinks you are hogging my bandwidth. Begone wastrel!"
    SyslogLevel emerg
    DirFakeGroup off
    DirFakeUser off
    PassivePorts 1024 1024
    RequireValidShell off
    </Global>
    TimeoutLogin 20
    UseReverseDNS on
    SystemLog /var/log/proftp
    
    
    
    
    Include /etc/proftpd_ispconfig.conf
    
     
  4. sushestvo

    sushestvo New Member

    show proftpd_ispconfig.conf here plz
     
  5. tgansert

    tgansert New Member

    Code:
    ###################################
    #
    # ISPConfig proftpd Configuration File
    #         Version 1.0
    #
    ###################################
    <VirtualHost [my interet IP here]>
            DefaultRoot             ~
            AllowOverwrite          on
            Umask                   002
    </VirtualHost>
    
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Can you login with users you created in ISPConfig through FTP, when the FTP checkbox is enabled for the website?
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Why do you have multiple DefaultRoot directives in /etc/proftpd.conf?
     
  8. tgansert

    tgansert New Member

    Multiple default roots apply to the user they are assigned to. ProFTP has no .rc directive file capability as far as I know & this is the only method (again, as far as I know).
     
  9. falko

    falko Super Moderator ISPConfig Developer

    What about Till's question?
     
  10. tgansert

    tgansert New Member

    I'm sorry - skipped it entirely ;) .. Here is the error I get when I attempt to connect to Web-FTP as an administrative user:

    [​IMG]

    When I attempt to connect as a non-admin user, I get 'web' on the right side, and 'Could not connect as user user' on the left. When I attempt to browse folders, I get 'Could not connect as user user' on both sides.
     
  11. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ?
    Does it work when you use a normal FTP client like SmartFTP?
     
  12. tgansert

    tgansert New Member

    Yes.

    netstap -tap:
    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 *:pop3s                 *:*                     LISTEN     1202/inetd
    tcp        0      0 *:swat                  *:*                     LISTEN     1202/inetd
    tcp        0      0 *:902                   *:*                     LISTEN     1567/rpc.statd
    tcp        0      0 localhost:mysql         *:*                     LISTEN     27459/mysqld
    tcp        0      0 *:netbios-ssn           *:*                     LISTEN     1402/smbd
    tcp        0      0 *:pop3                  *:*                     LISTEN     1202/inetd
    tcp        0      0 localhost:spamd         *:*                     LISTEN     8098/spamd.pid
    tcp        0      0 *:imap2                 *:*                     LISTEN     1202/inetd
    tcp        0      0 *:sunrpc                *:*                     LISTEN     902/portmap
    tcp        0      0 *:www                   *:*                     LISTEN     27508/apache
    tcp        0      0 *:81                    *:*                     LISTEN     22638/ispconfig_htt
    tcp        0      0 *:ftp                   *:*                     LISTEN     25344/proftpd: (acc
    tcp        0      0 actualhost.actualdomain.tld:domain *:*                     LISTEN     1119/named
    tcp        0      0 localhost:domain        *:*                     LISTEN     1119/named
    tcp        0      0 actualhost.actualdomain.tld.:ssh *:*                     LISTEN     7553/sshd
    tcp        0      0 *:smtp                  *:*                     LISTEN     16105/master
    tcp        0      0 *:https                 *:*                     LISTEN     27516/apache-ssl
    tcp        0      0 localhost:891           *:*                     LISTEN     1563/famd
    tcp        0      0 *:microsoft-ds          *:*                     LISTEN     1402/smbd
    tcp        0      0 localhost:ftp           localhost:56187         TIME_WAIT  -
    tcp        0      0 localhost:ftp           localhost:56189         TIME_WAIT  -
    tcp        0      0 localhost:ftp           localhost:56191         TIME_WAIT  -
    
     
  13. falko

    falko Super Moderator ISPConfig Developer

    What happens if you remove these lines:
    Code:
    <Global>
    DefaultRoot / root
    DefaultRoot / photo1
    DefaultRoot /var/www www-data
    DefaultRoot ~
    DeleteAbortedStores on
    HiddenStor on
    LoginPasswordPrompt off
    RootLogin off
    DisplayConnect /etc/proftpd.mesg
    MaxLoginAttempts 1
    UseFtpUsers on
    AllowRetrieveRestart on
    IdentLookups on
    MaxClientsPerHost 15 "Methinks you are hogging my bandwidth. Begone wastrel!"
    SyslogLevel emerg
    DirFakeGroup off
    DirFakeUser off
    PassivePorts 1024 1024
    RequireValidShell off
    </Global>
    TimeoutLogin 20
    UseReverseDNS on
    SystemLog /var/log/proftp
    from /etc/proftpd.conf and restart proftpd?
     
  14. tgansert

    tgansert New Member

    Now I have

    Code:
    The following error occurred:  
    FTP: Failed to write Array/.htaccess
    when I attempt to upload a file as a user.

    Also, I am intermittently getting "Could not connect as user user". This happened prior to commenting out those lines.
     
  15. falko

    falko Super Moderator ISPConfig Developer

    Can you try this in your /etc/proftpd.conf?

    Code:
    # This is a basic ProFTPD configuration file (rename it to
    # 'proftpd.conf' for actual use.  It establishes a single server
    # and a single anonymous login.  It assumes that you have a user/group
    # "nobody" and "ftp" for normal operation and anon.
    
    ServerName                      "Debian"
    ServerType                      standalone
    DeferWelcome                    off
    
    ShowSymlinks                    on
    MultilineRFC2228                on
    DefaultServer                   on
    ShowSymlinks                    on
    AllowOverwrite                  on
    
    TimeoutNoTransfer               600
    TimeoutStalled                  600
    TimeoutIdle                     1200
    
    DisplayLogin                    welcome.msg
    DisplayFirstChdir               .message
    LsDefaultOptions                "-l"
    
    DenyFilter                      \*.*/
    
    # Uncomment this if you are using NIS or LDAP to retrieve passwords:
    #PersistentPasswd               off
    
    # Port 21 is the standard FTP port.
    Port                            21
    
    # 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
    
    # Set the user and group that the server normally runs at.
    User                            nobody
    Group                           nogroup
    
    DefaultRoot ~
    IdentLookups off
    ServerIdent on "FTP Server ready."
    
    # Normally, we want files to be overwriteable.
    <Directory /*>
      # Umask 022 is a good standard umask to prevent new files and dirs
      # (second parm) from being group and world writable.
      Umask                         022  022
    
      AllowOverwrite                on
    </Directory>
    
    # A basic anonymous configuration, no upload directories.
    
    ## <Anonymous ~ftp>
    ##   User                               ftp
    ##   Group                              nogroup
    ##   # We want clients to be able to login with "anonymous" as well as "ftp"
    ##   UserAlias                  anonymous ftp
    ##
    ##   RequireValidShell          off
    ##
    ##   # Limit the maximum number of anonymous logins
    ##   MaxClients                 10
    ##
    ##   # We want 'welcome.msg' displayed at login, and '.message' displayed
    ##   # in each newly chdired directory.
    ##   DisplayLogin                       welcome.msg
    ##   DisplayFirstChdir          .message
    ##
    ##   # Limit WRITE everywhere in the anonymous chroot
    ##   <Directory *>
    ##     <Limit WRITE>
    ##       DenyAll
    ##     </Limit>
    ##   </Directory>
    ##
    ##   # Uncomment this if you're brave.
    ##   # <Directory incoming>
    ##   #   # Umask 022 is a good standard umask to prevent new files and dirs
    ##   #   # (second parm) from being group and world writable.
    ##   #   Umask                          022  022
    ##   #            <Limit READ WRITE>
    ##   #            DenyAll
    ##   #            </Limit>
    ##   #            <Limit STOR>
    ##   #            AllowAll
    ##   #            </Limit>
    ##   # </Directory>
    ##
    ## </Anonymous>
    
    
    Include /etc/proftpd_ispconfig.conf
     
  16. tgansert

    tgansert New Member

    How do I restart ISPConfig's proftpd?

    a simple proftpd restart from the command line returns:
    Code:
     - warning: "ProFTPD" address/port (208.44.78.14:21) already in use by "Debian"
    netstat -tap
    Code:
    tcp        0      0 *:ftp                   *:*                     LISTEN     20987/proftpd: (acc
     
  17. falko

    falko Super Moderator ISPConfig Developer

    It's not ISPConfig's Proftpd, it's your system's Proftpd. ISPConfig doesn't come with an FTP server included.
    Restart it like this:
    Code:
    /etc/init.d/proftpd restart
     
  18. tgansert

    tgansert New Member

    No good. I can connect from any FTP client, but not ISPConfig. I've noted since I installed the OS that the FTP server takes about 8-10 seconds to reply to a connection request.... If ISPConfig uses PHP's ftp_* instead, how can I test to check if --with-ftp was used during PHP install?
     
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    The ISPCOnfig PHP that is used on the server on port 81 is identically compiled with FTP enabled on all ISPConfig installations.
     
  20. tgansert

    tgansert New Member

    Are there any logs I can view to see if there are errors being kicked out?
     

Share This Page