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:

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

That is it :)

The example

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

    <Directory /home/akaita/public_html>
        AllowOverwrite on
© 2017 Akaita development