LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to reset the .ftpquota counter on a per user basis for pure-ftpd server (https://www.linuxquestions.org/questions/linux-software-2/how-to-reset-the-ftpquota-counter-on-a-per-user-basis-for-pure-ftpd-server-4175593704/)

mathewjose09 11-17-2016 04:48 AM

How to reset the .ftpquota counter on a per user basis for pure-ftpd server
 
I am trying to reset the counter values to 0 in .ftpquota file for all ftp users on a daily basis in pure-ftpd server .

From manual page I got that we can set the quota limits using the "-n" option in pure-ftpd server .

But I could not find how to reset this counter value in the .ftpquota file on a daily/weekly basis .

Is there any commands available for the same ? or do we have to manually edit this file ?

bathory 11-17-2016 06:07 AM

Quote:

But I could not find how to reset this counter value in the .ftpquota file on a daily/weekly basis .

Is there any commands available for the same ? or do we have to manually edit this file ?
There is no command, but you can create a daily/weekly cronjob to delete or empty .ftpquota file(s), so it actually reset the user(s) quota counters.

Regards


All times are GMT -5. The time now is 09:12 AM.