[Proftpd-user] mod_sql + VirtualHost + AllowOverwrite >.< - proftpd

This is a discussion on [Proftpd-user] mod_sql + VirtualHost + AllowOverwrite >.< - proftpd ; Hi, I've installed and configured a home ftp server behind a NAT. I've got 2 virtual hosts : -inside LAN -outside LAN (using MasqueradeAddress + another port) I'm also using mod_sql. Everything works well. But I can't overwrite :-( Typical ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [Proftpd-user] mod_sql + VirtualHost + AllowOverwrite >.<

  1. [Proftpd-user] mod_sql + VirtualHost + AllowOverwrite >.<

    Hi,

    I've installed and configured a home ftp server behind a NAT.
    I've got 2 virtual hosts :
    -inside LAN
    -outside LAN (using MasqueradeAddress + another port)
    I'm also using mod_sql.

    Everything works well.

    But I can't overwrite :-(
    Typical error :
    "
    14:18:32 > -> STOR /index.php
    14:18:32 > Response (550): /index.php: Overwrite permission denied
    "
    I have to delete then re-upload...

    I tried several configuration with the 'AllowOverwrite' directive
    without success :
    -global
    -inside the
    -inside the
    -inside the inside the

    Can you help me ? Thanks

    Here is my configuration (i remove commented lines) :
    #----------------------------------------------------------------------------------------------------------------------------------
    # Includes DSO modules
    Include /etc/proftpd/modules.conf

    # Set off to disable IPv6 support which is annoying on IPv4 only boxes.
    UseIPv6 off

    ServerName "TiTi FTP"
    ServerAdmin anthibug@gmail.com
    ServerType standalone
    DeferWelcome off

    UseReverseDNS off
    IdentLookups off

    MultilineRFC2228 on
    DefaultServer on
    ShowSymlinks on

    TimeoutNoTransfer 600
    TimeoutStalled 600
    TimeoutIdle 1200

    DisplayLogin welcome.msg
    DisplayChdir .message true
    ListOptions "-l"

    DenyFilter \*.*/

    # Use this to jail all users in their homes
    DefaultRoot ~

    # Users require a valid shell listed in /etc/shells to login.
    # Use this directive to release that constrain.
    RequireValidShell 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 proftpd
    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


    SQLBackend mysql


    TransferLog /var/log/proftpd/xferlog
    SystemLog /var/log/proftpd/proftpd.log


    QuotaEngine off



    Ratios off



    # Delay engine reduces impact of the so-called Timing Attack described in
    # http://security.lss.hr/index.php?pag...LSS-2004-10-02
    # It is on by default.

    DelayEngine on



    ControlsEngine off
    ControlsMaxClients 2
    ControlsLog /var/log/proftpd/controls.log
    ControlsInterval 5
    ControlsSocket /var/run/proftpd/proftpd.sock



    AdminControlsEngine off



    #------------------------


    # Enregistre les authentifications
    LogFormat auth "%v [%P] %h %t \"%r\" %s"
    ExtendedLog /var/log/proftpd/auth.log AUTH auth

    # Enregistre les acces aux fichiers
    LogFormat write "%h %l %u %t \"%r\" %s %b"
    ExtendedLog /var/log/proftpd/access.log WRITE,READ write



    ServerName "TiTi FTP"
    ServerAdmin anthibug@gmail.com
    Port 2121
    DefaultRoot ~
    RequireValidShell off
    Include /etc/proftpd/sql.conf
    MasqueradeAddress anthibug.no-ip.org
    PassivePorts 5000 5100
    ServerIdent on "Welcome to TiTi FTP Server :-)"
    IdentLookups off



    ServerName "TiTi FTP LAN"
    Port 21
    DefaultRoot ~
    RequireValidShell off
    Include /etc/proftpd/sql.conf
    ServerIdent on "Welcome to TiTi LAN FTP Server :-)"
    IdentLookups off

    # Note that there is no MasqueradeAddress directive
    # used in this section!



    # Refresh any configured MasqueradeAddress directives every 20min
    DynMasqRefresh 1200

    #----------------------------------------------------------------------------------------------------------------------------------

    -------------------------------------------------------------------------
    Check out the new SourceForge.net Marketplace.
    It's the best place to buy or sell services for
    just about anything Open Source.
    http://sourceforge.net/services/buy/index.php
    _______________________________________________
    ProFTPD Users List
    Unsubscribe problems?
    http://www.proftpd.org/list-unsub.html


  2. Re: [Proftpd-user] mod_sql + VirtualHost + AllowOverwrite >.<


    > -global
    > -inside the
    > -inside the
    > -inside the inside the


    By "global", do you mean the section, or just outside of any
    ? There is a difference; see:

    http://www.proftpd.org/docs/howto/Vhost.html

    TJ

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    It is not our purpose to become each other; it is to recognize each other,
    to learn to see the other and honor him for what he is.

    -Hermann Hesse

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    -------------------------------------------------------------------------
    Check out the new SourceForge.net Marketplace.
    It's the best place to buy or sell services for
    just about anything Open Source.
    http://sourceforge.net/services/buy/index.php
    _______________________________________________
    ProFTPD Users List
    Unsubscribe problems?
    http://www.proftpd.org/list-unsub.html


+ Reply to Thread