ftp - could not retrieve directory listing

Discussion in 'Installation/Configuration' started by torusturtle, Aug 29, 2006.

  1. torusturtle

    torusturtle ISPConfig Developer ISPConfig Developer

    Hi

    When using filezilla I can log in to a domain but when filezilla uses the list command I get the error

    netstat -tap

    gives the following:

    where domain.tld is the right server Domain and xxx.xx.xxx.xx is my current IP on my computer at home.

    I did restart proftpd with /etc/init.d/proftpd restart which gave me an [OK].

    Any ideas?

    Thanks!
     
  2. torusturtle

    torusturtle ISPConfig Developer ISPConfig Developer

    I restartet the whole server but still everything works but ftp.
    Same error.
     
  3. torusturtle

    torusturtle ISPConfig Developer ISPConfig Developer

    Code:
    /etc/rc.d/init.d/proftpd restart
    gives

     
  4. torusturtle

    torusturtle ISPConfig Developer ISPConfig Developer

    tail -f /var/log/messages

     
  5. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/proftpd.conf and /etc/proftpd_ispconfig.conf?
    Which distribution do you use?
     
  6. torusturtle

    torusturtle ISPConfig Developer ISPConfig Developer

    Thanks for asking! :)

    I use Fedora Core 3 and ISPConfig 2.2.5

    /etc/proftpd.conf

    /etc/proftpd_ispconfig.conf
     
  7. Rocky

    Rocky New Member

    I think your problem is that you have 2 Defaultroot statements in your proftpd.conf:

    DefaultRoot ~ !adm
    DefaultRoot ~

    Try commenting out the first line, restart Proftp and see what happens.
     
  8. torusturtle

    torusturtle ISPConfig Developer ISPConfig Developer

    I did comment it out:
    #DefaultRoot ~ !adm

    same problem after restart. :-(
     
  9. Rocky

    Rocky New Member

    Make a backup of /etc/proftpd.conf.
    After that, format /etc/proftpd.conf to look like the below example. If there are extra config in your current file, just comment them out. Just make sure it looks exactly like the below example. Then run /etc/init.d/proftpd restart to restart proftp server.

    # 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

    # Allow FTP resuming.
    # Remember to set to off if you have an incoming ftp for upload.
    AllowStoreRestart 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 nogroup

    # 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>

    # Needed for NIS.

    PersistentPasswd off

    # Default root can be used to put users in a chroot environment.
    # As an example if you have a user foo and you want to put foo in /home/foo
    # chroot environment you would do this:
    #
    # DefaultRoot /home/foo foo


    Include /etc/proftpd_ispconfig.conf
     
  10. torusturtle

    torusturtle ISPConfig Developer ISPConfig Developer

    restarting failed because there is no group "nogroup"
    Do I have to create one? Where and how?
     
    Last edited: Aug 31, 2006
  11. falko

    falko Super Moderator ISPConfig Developer

    I think the group is called nobody on your system. Replace nogroup with nobody and try again.
     

Share This Page