Installa la nostra toolbar!
Howto / DirectAdmin
addthis
DirectAdmin 1.32.1 - Enable and manage Proftpd quotas based on file tables
Author: Tafaz
Visits: 1620
Date: 16.09.2008

DirectAdmin doesn't provide a method to manage ftp quota for ftp users, to enable it we need to configure Proftpd manually recompiling with the module mod_quotatab.
To recompile it we need to edit the file configure.proftpd located in /usr/local/directadmin/custombuild/configure/proftpd/ adding the option --with-modules=mod_quotatab:mod_quotatab_file as shown in the example below

#!/bin/sh
install_user=ftp \
install_group=ftp \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var/run \
--mandir=/usr/share/man \
--without-pam \
--disable-auth-pam \
--with-modules=mod_ratio:mod_readme:mod_tls \
--with-modules=mod_quotatab:mod_quotatab_file
LDFLAGS=-static


add only the bold line to your config file

now we have to recompile proftpd

cd /usr/local/directadmin/custombuild/
./build proftpd


Once recompiled we have the mod_quotatab module enabled and a new executable called ftpquota located in /usr/local/directadmin/custombuild/proftpd-`your-version`/contrib/. This executable gives us the ability ti create and manage the quota table binary files needed from Proftpd to handle quota.
For convenience we put a link to this executable in /usr/bin to make it available everywhere in the system.

cd /usr/bin
ln -s /usr/local/directadmin/custombuild/proftpd-`versione`/contrib/ftpquota ftpquota




Page 1 of 2 >>


Se vuoi discutere con noi su questo articolo o comunque vuoi porci delle domande usa il nostro Forum

COMMENTI

Aggiungi un commento! +
(I commenti verranno moderati prima della pubblicazione)



Top