Debian Sarge, FTP problems

Discussion in 'Installation/Configuration' started by KenKnight, Jul 21, 2006.

  1. KenKnight

    KenKnight Member

    I've read through several FTP related threads I found and still haven't found the fix.

    My problem is this; Running proftpd. When I try to connect to the server it shows EVERY file and folder at the top level. Not in a proper tree like normal.

    Does anyone have a suggestion?

    I've added the socketbindtight (but don't thinks thats necessary in this case).

    Also a note, when I try to do a "proftpd restart", it gives the warning about "already being in use by "Debian"". Which leads me to believe that its not under ISPconfig's control??

    Thanks,
    Ken
     
  2. TheRudy

    TheRudy ISPConfig Developer ISPConfig Developer

  3. falko

    falko Super Moderator ISPConfig Developer

    Please check that you have
    Code:
    DefaultRoot ~
    in /etc/proftpd.conf.
     
  4. KenKnight

    KenKnight Member

    Hi all,

    Well I got rid of the warning problem but I'm still getting an list of files being displayed in the "root" folder. I checked the DefaultRoot and it is in place with the tilde.

    Any other suggestions?

    Thanks,
    Ken
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post your proftpd.conf file. Please remove comments before you post it.
     
  6. KenKnight

    KenKnight Member

    sorry for the delay, had to go out of town.

    here's the config w/o comments;

    ---------------------------------------------------------


    ServerName "Debian"
    ServerType standalone
    DeferWelcome off
    DefaultAddress 192.168.10.169
    PassivePorts 40000 40100

    MultilineRFC2228 on
    DefaultServer on
    ShowSymlinks on

    TimeoutNoTransfer 600
    TimeoutStalled 600
    TimeoutIdle 1200

    DisplayLogin welcome.msg
    DisplayFirstChdir .message
    ListOptions "-l"

    DenyFilter \*.*/


    Port 21


    MaxInstances 30


    User nobody
    Group nogroup


    Umask 022 022

    AllowOverwrite on



    IdentLookups off
    ServerIdent on "FTP Server ready."


    Include /etc/proftpd_ispconfig.conf
    -------------------------------------------

    Thanks,
    Ken
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Code:
    DefaultRoot ~
    is missing in your proftpd.conf.
     
  8. KenKnight

    KenKnight Member

    Hi Falko,

    Thanks for the response. I added to the main proftpd.conf file, however, it was already listed in the proftpd_ispconfig.conf. Heres a copy of that

    ###################################
    #
    # ISPConfig proftpd Configuration File
    # Version 1.0
    #
    ###################################
    DefaultAddress 127.0.0.1
    <VirtualHost 192.168.10.169>
    DefaultRoot ~
    AllowOverwrite on
    Umask 002
    </VirtualHost>
    <VirtualHost 192.168.10.170>
    DefaultRoot ~
    AllowOverwrite on
    Umask 002
    </VirtualHost>



    Does all that look ok?

    Thanks,
    ken

    PS. I'm using a multihomed NIC, theres not really to physical cards there.
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Did you restart ProFTPd? Does it work now? Did you try with a user you created with ISPConfig?
     
  10. KenKnight

    KenKnight Member

    Sorry about the long delay between responses. I've been having to travel on business over the last few weeks.

    Yes I restarted the entire system. When I login via ftp it pulls over a directory listing about 2.6megs in size still with everything right in the root.


    --UPDATE---

    It is now working correctly via Active connection but not passive. Unfortunantely I need passive for my software development.

    --UPDATE #2--

    Well after restarting the system 3 times, it now appears to be working on passive as it should. I'll restart it a few more times and see it holds.



    Thanks,
    Ken
     
    Last edited: Aug 5, 2006

Share This Page