[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 <VirtualHost>
-inside the <Directory>
-inside the <Directory> inside the <VirtualHost>
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 [email]anthibug@gmail.com[/email]
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
<IfModule mod_sql.c>
SQLBackend mysql
</IfModule>
TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log
<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>
<IfModule mod_ratio.c>
Ratios off
</IfModule>
# Delay engine reduces impact of the so-called Timing Attack described in
# [url]http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02[/url]
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>
<IfModule mod_ctrls.c>
ControlsEngine off
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>
<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>
#------------------------
# 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
<VirtualHost 192.168.0.3>
ServerName "TiTi FTP"
ServerAdmin [email]anthibug@gmail.com[/email]
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
</VirtualHost>
<VirtualHost 192.168.0.3>
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!
</VirtualHost>
<IfModule mod_dynmasq.c>
# Refresh any configured MasqueradeAddress directives every 20min
DynMasqRefresh 1200
</IfModule>
#----------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
[url]http://sourceforge.net/services/buy/index.php[/url]
_______________________________________________
ProFTPD Users List <proftpd-users@proftpd.org>
Unsubscribe problems?
[url]http://www.proftpd.org/list-unsub.html[/url]
Re: [Proftpd-user] mod_sql + VirtualHost + AllowOverwrite >.<
[color=blue]
> -global
> -inside the <VirtualHost>
> -inside the <Directory>
> -inside the <Directory> inside the <VirtualHost>[/color]
By "global", do you mean the <Global> section, or just outside of any
<VirtualHost>? There is a difference; see:
[url]http://www.proftpd.org/docs/howto/Vhost.html[/url]
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.
[url]http://sourceforge.net/services/buy/index.php[/url]
_______________________________________________
ProFTPD Users List <proftpd-users@proftpd.org>
Unsubscribe problems?
[url]http://www.proftpd.org/list-unsub.html[/url]