LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-17-2016, 04:48 AM   #1
mathewjose09
LQ Newbie
 
Registered: Nov 2016
Posts: 1

Rep: Reputation: Disabled
Unhappy 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 ?
 
Old 11-17-2016, 06:07 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,871

Rep: Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872
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
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pure-ftpd virtual user issue mbnoimi Linux - Server 25 06-04-2013 10:12 AM
pure-ftpd-mysql activates pure-ftpd zvikamer Linux - Software 2 03-01-2008 12:11 PM
Add pure-ftpd virtual user with PHP GavB Linux - Software 1 12-27-2007 01:05 PM
Pure-ftpd server rusers? Tunel Linux - Server 1 12-13-2006 09:04 AM
Pure-ftpd - user access and privilegies? Waerner Linux - Networking 11 10-25-2005 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration