sprintserve
07-03-2004, 06:01 AM
Dear all,
I had tested the following settings on a test Cpanel system we run and it works perfectly fine. I did some quick testing rather than extensive testing and this are the parameters I use. If you have any to add, please let me know and I will edit my post.
Thank you and begone diskspace abusers :)
Date of Writing: 3rd July 2004
Step 1:
You would need to download the latest Pure-FTPd stable package. At the time of writing this is version 1.0.19. Login on SSH and go to a directory where you store your sources. I use /usr/local/src in this example. You may have your own locations. In that case, just replace the first step.
cd /usr/local/src
wget ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.19.tar.gz
tar -zvxf pure-ftpd-1.0.19.tar.gz
cd pure-ftpd-1.0.19
Step 2:
Now you are ready to configure it and compile the new sources.
./configure --with-sysquota --with-everything --with-paranoidmsg --without-capabilities --with-virtualchroot --prefix=/usr/
Note: The first time round, I had compiled with just the switches I needed. But because I did not do extensive testing, I decided to just adopt the RPM switches and add the sysquota switch as well as the path to ensure minimal changes in case Cpanel complains.
I am also not going to reproduce the documnentation on what these switches meant. You can get it all at: http://www.pureftpd.org/README
For reference, this are the switches I used initially and I tested to work fine:
./configure --with-sysquotas --with-peruserlimits --with-puredb --with-ftpwho --with-language=english --with-boring --with-extauth --prefix=/usr/
Step 3:
You can now compile it.
make
make install
Step 4:
You are done!
/etc/init.d/pure-ftpd restart
Additional Note: In /etc/sysconfig/pure-ftpd , you would now have to take note of this switch:
--maxdiskusagepct=90
This basically means that once you hit 90% of your quota, Pure-FTPd will prevent you from uploading anymore. You can of course amend it to 100. But it's not advisable as things in the account will start failing (emails, stats amount others).
This switch was always there, but of course since Cpanel did not compile the RPM with the system quota switch, it's useless. But with this new compilation, this finally have some meaning and use.
That's all there is. Now enjoy your Pure-FTPd with quotas :)
I had tested the following settings on a test Cpanel system we run and it works perfectly fine. I did some quick testing rather than extensive testing and this are the parameters I use. If you have any to add, please let me know and I will edit my post.
Thank you and begone diskspace abusers :)
Date of Writing: 3rd July 2004
Step 1:
You would need to download the latest Pure-FTPd stable package. At the time of writing this is version 1.0.19. Login on SSH and go to a directory where you store your sources. I use /usr/local/src in this example. You may have your own locations. In that case, just replace the first step.
cd /usr/local/src
wget ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.19.tar.gz
tar -zvxf pure-ftpd-1.0.19.tar.gz
cd pure-ftpd-1.0.19
Step 2:
Now you are ready to configure it and compile the new sources.
./configure --with-sysquota --with-everything --with-paranoidmsg --without-capabilities --with-virtualchroot --prefix=/usr/
Note: The first time round, I had compiled with just the switches I needed. But because I did not do extensive testing, I decided to just adopt the RPM switches and add the sysquota switch as well as the path to ensure minimal changes in case Cpanel complains.
I am also not going to reproduce the documnentation on what these switches meant. You can get it all at: http://www.pureftpd.org/README
For reference, this are the switches I used initially and I tested to work fine:
./configure --with-sysquotas --with-peruserlimits --with-puredb --with-ftpwho --with-language=english --with-boring --with-extauth --prefix=/usr/
Step 3:
You can now compile it.
make
make install
Step 4:
You are done!
/etc/init.d/pure-ftpd restart
Additional Note: In /etc/sysconfig/pure-ftpd , you would now have to take note of this switch:
--maxdiskusagepct=90
This basically means that once you hit 90% of your quota, Pure-FTPd will prevent you from uploading anymore. You can of course amend it to 100. But it's not advisable as things in the account will start failing (emails, stats amount others).
This switch was always there, but of course since Cpanel did not compile the RPM with the system quota switch, it's useless. But with this new compilation, this finally have some meaning and use.
That's all there is. Now enjoy your Pure-FTPd with quotas :)
