Paul Ward

Member
Nov 30, 2016
5
0
1
London
cPanel Access Level
Root Administrator
Hi all,

I'd like to know if there is an easy way to find all users that are over quota and are no longer using there accounts.

I've inherited a cpanel/WHM system that is in a bit of a mess. I have several re-seller accounts and many cpanel user accounts also.

I am able to find the user accounts by using either # quota -su or looking at the /var/cpanel/repquota.cache file.
However the re-seller ones seem harder to get at, logging in as the re-seller I can see warnings for 3 accounts, looking at them I can see they have quotas set at 250MB for mail however one of them is showing over 800MB. I wanted to know is there a way I can list all re-seller accounts over quota or will I have to resort to some bash scripting to work it out?

On a side note does anyone know a way to establish if an account is in use? Currently my method is looking at the mail dir for the user, then drill down to the cur and new dir, I've been thinking if there are no files in cur or no files in new then they have been read and removed, yet if there are lots of files in new and they date back up to several years ago (2015 I've seen) then I assume no one is looking at them and the account is not active.

Cheers
Paul
 

Peoplespaces

Well-Known Member
Oct 1, 2001
262
6
318
cPanel Access Level
Root Administrator
In WHM go to 'Account Information' and then 'Show Accounts over Quota'. That will show all hosting accounts over quota.

If you check the domain registration and run a traceroute on the domain names that you think are not used, that may verify same.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello,

The "Show Accounts Over Quota" feature in WHM will show you a list of all accounts that have reached their disk space limit. For the reseller account itself, you may find this thread helpful:

Reseller Disk Usage - CLI

You could also review /usr/local/cpanel/logs/login_log or /var/log/maillog to see if there's any activity for the account username or individual email accounts.

Thank you.