Virtualmin FTP Overwrite permission denied

Virtualmin is a great module which allows you to manage multiple virtual hosts in a very easy way. Make sure you check it out:

http://www.webmin.com/virtualmin.html

It does a lot for you, so it has to take some decisions for you. If you enable FTP access and use it, you will find the annoying error:

Overwrite permission denied

550 Overwrite permission denied

In the normal, non-Virtualmin world, you usually edit this by adding the AllowOverwrite on directive in /etc/proftpd/proftpd.conf. Virtualmin wants to give you the chance to customize it per virtualhost, does it kind of half-way, and doesn’t give you any GUI for it (they are not perfect, it is fine).

The fix

Edit: /etc/proftpd/modules.conf

Add this to the <VirtualHost> directive:

<Directory />
    AllowOverwrite on
</Directory>

That is it :)

The example

In my case the end of /etc/proftpd/modules.conf looks like this:

<VirtualHost 10.0.1.1>
    ServerName akaita.com
    <Directory /home/akaita/public_html>
        AllowOverwrite on
    </Directory>
</VirtualHost>
© 2017 Akaita development