ispconfig and profpt

Discussion in 'Installation/Configuration' started by john, Feb 7, 2007.

  1. john

    john New Member

    Problem,

    I want to edit the proftpd_ispconfig.conf file.
    All the users who can use a ftp-program and login in wil come in their /home/webdir.
    But they can also read in all the directory's above.
    Normaly the will be jailed in their home directory.

    If i edit the conf file below and restart the Proftp deamon, all the new setting will be rewriten.


    Where and how can i write the settings to jail the ftp user in their /var/www/webX box with out any read rights in /var/www/ or above.

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


    I also tried to edit the /etc/proftp.conf to:

    DefaultRoot /var/www/web24/

    Include /etc/proftpd_ispconfig.conf
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Just add:

    DefaultRoot ~

    in the file /etc/proftpd.conf. the directive must not be included in a virtual host directive.
     
  3. john

    john New Member

    already there

    In the Proftp.conf is
    DefaultRoot ~

    already there.

    This wasn't the option.
    The ftp user is only webbassed jailed but not with ftp programm.

    I hope you will know the answer.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/proftpd.conf?
    Are you sure you use FTP, and not something like SCP?
     
  5. bplgonzo

    bplgonzo New Member

    I'm having same issue.

    DefaultRoot ~ is already in proftpd.conf and not in Vhosts file
    I'm sure I used FTP (WS-FTP, Firefox FTP)

    Still having this problem. Anyone knows solution?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please set the documentRoot globally as described in the perfect setup guides in proftpd conf before the include of the vhosts file. It is not nescessary to set the document root in every vhost.
     
  7. bplgonzo

    bplgonzo New Member

    proftpd.conf

    DefaultRoot ~
    IdentLookups off
    ServerIdent on "FTP Server ready."
    Include /etc/proftpd_ispconfig.conf


    proftpd_ispconfig.conf

    ###################################
    #
    # ISPConfig proftpd Configuration File
    # Version 1.0
    #
    ###################################
    DefaultAddress 127.0.0.1
    <VirtualHost XXX.XXX.XXX.XXX>
    AllowOverwrite on
    Umask 002
    </VirtualHost>



    Not working properly. Didn't also worked when i had "DefaultRoot ~" in <VirtualHost> in proftpd_ispconfig.conf
     
  8. falko

    falko Super Moderator ISPConfig Developer

    What happens when you comment out DefaultAddress 127.0.0.1 in /etc/proftpd_ispconfig.conf and restart Proftpd?
     
  9. webcycler

    webcycler New Member

    I was reading this thread, because I had some problems with FTP.
    Before installing ISPconfig my FTP is always fast and i can login (using LeapFTP) almost instantly.
    But after installing ISPconfig my logging in became very slow (takes 20 seconds te login). Also there are a lot of connection problems when oploading files of while editing files online.

    So, by reading this thread, I commented out <<DefaultAddress 127.0.0.1>> in /etc/proftpd_ispconfig.conf and then restarted Proftpd.

    Now it is superfast again and connection problems vanished ....

    However, restarting proftpd generates a warning:
    Starting proftpd: - warning: "ProFTPD" address/port (xxx.xxx.xxx.xxx:21) already in use by "ProFTPD Default Installation"

    (xxx.xxx.xxx.xxx is my IP numer)

    Who can shine a light on this?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the content of the /etc/hosts file of your server.
     
  11. webcycler

    webcycler New Member

    My /etc/hosts is configured just as described in Perfect Server Setup Centos 5 page 3
    I replaced the IP with mine and replaced the hostname as in this example:

    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    192.168.0.100 server1.example.com server1
    ::1 localhost6.localdomain6 localhost6
     
  12. falko

    falko Super Moderator ISPConfig Developer

  13. bplgonzo

    bplgonzo New Member

    ### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
    127.0.0.1 localhost
    ::1 localhost ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts

    xxx.149.xxx.220 server.mg-gaming.net server
     
  14. falko

    falko Super Moderator ISPConfig Developer

    Did you read the link I posted? Did that help?
     

Share This Page