ftp download failed

Discussion in 'Installation/Configuration' started by tomt2002, Jul 13, 2007.

  1. tomt2002

    tomt2002 New Member

    we set up one Anonymous FTP account and copy files into that folder.

    if we start the internet explorer and open the ftp connection, we see the files but if we start to download the files we got only an error message "website can´t be displayed", so it seems that the files are not found.

    any idea, thanks !
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Plaese check the configuration of your ftp daemon, if there are any restrictions set that may perevent anonymous accounts from downloading the files.
     
  3. tomt2002

    tomt2002 New Member

    only for testing we use the IE7 included FTP service. the problem is that only with the ispconfig based FTP server we are having that problem. if i use a different FTP server based on a standard SUSE installation we could download the listed files without any problem.

    so i think it must be anything with the proFTP configuration or an ispconfig setting.

    thanks for your help.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Can you try with a real FTP client such as WS_FTP, SmartFTP, or gFTP?
    Do you see any errors in your logs?
     
  5. tomt2002

    tomt2002 New Member

    The problem is the same with any ftp client. strange is that if i copy with the admin ftp account some files to the ftp directory "ftp/incoming", logout and login again as anonymous i can´t see any file. the folder flag of "/incoming" is 773, so the read flag is missing. if i change this to 775 or 777 i could see the files as anonymous but i can´t download it. the ftp util is equal e.g if i use filezilla i get the error message "550 dban-1.0.7_i386.iso: Permission denied".

    unfortunately i can´t find any log for the proftp. i think it should be in var/log/proftp but there is not such a folder.

    thanks !
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Can you post your ProFTPd configuration here? This should be in /etc/proftpd.conf or /etc/proftpd/proftpd.conf.
     
  7. tomt2002

    tomt2002 New Member

    here it is, hope it helps.

    [root@web1 etc]# cat proftp*
    # 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 "ProFTPD Default"
    ServerType standalone
    DefaultServer on

    # Port 21 is the standard FTP port.
    Port 21

    # Umask 022 is a good standard umask to prevent new dirs and files
    # from being group and world writable.
    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

    # Set the user and group under which the server will run.
    User nobody
    Group nobody

    # To cause every FTP user to be "jailed" (chrooted) into their home
    # directory, uncomment this line.
    DefaultRoot ~
    IdentLookups off
    ServerIdent on "FTP Server ready."

    # Normally, we want files to be overwriteable.
    AllowOverwrite on

    # Bar use of SITE CHMOD by default
    <Limit SITE_CHMOD>
    DenyAll
    </Limit>

    # A basic anonymous configuration, no upload directories. If you do not
    # want anonymous users, simply delete this entire <Anonymous> section.
    <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 50

    # 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
    <Limit WRITE>
    DenyAll
    </Limit>
    </Anonymous>


    Include /etc/proftpd_ispconfig.conf# 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 "ProFTPD Default Installation"
    ServerType standalone
    DefaultServer on

    # Port 21 is the standard FTP port.
    Port 21

    # Umask 022 is a good standard umask to prevent new dirs and files
    # from being group and world writable.
    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

    # Set the user and group under which the server will run.
    User nobody
    Group nobody

    # To cause every FTP user to be "jailed" (chrooted) into their home
    # directory, uncomment this line.
    DefaultRoot ~
    IdentLookups off
    ServerIdent on "FTP Server ready."

    # Normally, we want files to be overwriteable.
    AllowOverwrite on

    # Bar use of SITE CHMOD by default
    <Limit SITE_CHMOD>
    DenyAll
    </Limit>

    # A basic anonymous configuration, no upload directories. If you do not
    # want anonymous users, simply delete this entire <Anonymous> section.
    <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 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
    <Limit WRITE>
    DenyAll
    </Limit>
    </Anonymous>
    ###################################
    #
    # ISPConfig proftpd Configuration File
    # Version 1.0
    #
    ###################################
    DefaultAddress 127.0.0.1
    <VirtualHost 172.16.1.102>
    DefaultRoot ~
    AllowOverwrite on
    Umask 002
    <Anonymous /var/www/web17/ftp>
    User web17_anonftp
    Group web17_anonftp
    UserAlias anonymous web17_anonftp
    UserAlias guest web17_anonftp
    MaxClients 10
    <Directory *>
    <Limit WRITE>
    DenyAll
    </Limit>
    </Directory>
    <Directory /var/www/web17/ftp/incoming>
    Umask 002
    <Limit STOR>
    AllowAll
    </Limit>
    <Limit READ>
    DenyAll
    </Limit>
    </Directory>
    </Anonymous>
    </VirtualHost>###################################
    #
    # ISPConfig proftpd Configuration File
    # Version 1.0
    #
    ###################################
    DefaultAddress 127.0.0.1
    <VirtualHost 172.16.1.102>
    DefaultRoot ~
    AllowOverwrite on
    Umask 002
    <Anonymous /var/www/web17/ftp>
    User web17_anonftp
    Group web17_anonftp
    UserAlias anonymous web17_anonftp
    UserAlias guest web17_anonftp
    MaxClients 10
    <Directory *>
    <Limit WRITE>
    DenyAll
    </Limit>
    </Directory>
    <Directory /var/www/web17/ftp/incoming>
    Umask 002
    <Limit STOR>
    AllowAll
    </Limit>
    <Limit READ>
    DenyAll
    </Limit>
    </Directory>
    </Anonymous>
    </VirtualHost>
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Why did you copy the ispconfig proftpd.conf include file twice at the end of your proftpd.conf file?
     
  9. tomt2002

    tomt2002 New Member

    Hello Till,

    sorry that was not knowignly, may this was happen during testing. i think both entries should not be there, so the last line shout be:
    # Limit WRITE everywhere in the anonymous chroot
    <Limit WRITE>
    DenyAll
    </Limit>
    </Anonymous>

    i remove the lines and will test again, thanks !
     
  10. tomt2002

    tomt2002 New Member

    i checked the files and it was a user problem with the cat command because i use a wildcard to show the files. sorry for the confusion !

    now the correct file:
    [root@web1 etc]# cat proftpd.conf

    # 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 "ProFTPD Default"
    ServerType standalone
    DefaultServer on

    # Port 21 is the standard FTP port.
    Port 21

    # Umask 022 is a good standard umask to prevent new dirs and files
    # from being group and world writable.
    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

    # Set the user and group under which the server will run.
    User nobody
    Group nobody

    # To cause every FTP user to be "jailed" (chrooted) into their home
    # directory, uncomment this line.
    DefaultRoot ~
    IdentLookups off
    ServerIdent on "FTP Server ready."

    # Normally, we want files to be overwriteable.
    AllowOverwrite on

    # Bar use of SITE CHMOD by default
    <Limit SITE_CHMOD>
    DenyAll
    </Limit>

    # A basic anonymous configuration, no upload directories. If you do not
    # want anonymous users, simply delete this entire <Anonymous> section.
    <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 50

    # 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
    <Limit WRITE>
    DenyAll
    </Limit>
    </Anonymous>


    Include /etc/proftpd_ispconfig.conf



    thanks for your help.
     
  11. tomt2002

    tomt2002 New Member

    sorry it´s me again, i made a lot of testing but without any result. i´m having no further ideas, could anyone please help ?

    thanks !
     
  12. falko

    falko Super Moderator ISPConfig Developer

    In what directory exactly do you have this problem? /var/www/web17/ftp/incoming?
     

Share This Page