In /etc/ispcp/proftpd you must have following folders:
Code:
backup
parts
working
In /etc/ispcp/proftpd/parts/you must have one file named proftpd.conf.tpl with following content:
Code:
<Directory {PATH}/backups>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory {PATH}/backups/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
<Directory {PATH}/cgi-bin>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory {PATH}/cgi-bin/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
<Directory {PATH}/htdocs>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory {PATH}/htdocs/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
<Directory {PATH}/errors>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory {PATH}/errors/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
<Directory {PATH}/logs>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory {PATH}/logs/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
<Directory {PATH}/phptmp>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory {PATH}/phptmp/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
<Directory {PATH}/statistics>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory {PATH}/statistics/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
In /etc/proftpd you mus have following folder: ispcp. In /etc/proftpd/ispcp you mast have one file named root_domain.conf with following content:
Code:
<Directory ~/backups>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory /var/www/virtual/cms.eu.bogus/backups/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
<Directory ~/cgi-bin>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory ~/cgi-bin/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
<Directory ~/htdocs>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory ~/htdocs/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
<Directory ~/errors>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory ~/errors/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
<Directory ~/logs>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory ~/logs/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
<Directory ~/phptmp>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory ~/phptmp/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
<Directory ~/statistics>
<Limit RMD RNTO DELE XRMD>
DenyAll
</Limit>
</Directory>
<Directory ~/statistics/*>
<Limit RMD RNTO DELE XRMD>
AllowAll
</Limit>
</Directory>
Also in proftpd.conf you must have following line:
Code:
Include /etc/proftpd/ispcp/*
/etc/proftpd/ispcp, /etc/ispcp/proftpd/parts, /etc/ispcp/proftpd/working folders, and /etc/proftpd/ispcp/root_domain.conf Are not created by nighly update script (only a fres install will do this). Also Include /etc/proftpd/ispcp/* is added only by a fresh install, not by update nightly script.