Where is the cPanel account data file?

garconcn

Well-Known Member
Oct 29, 2009
172
18
68
In WHM - List Accounts - Fetch CSV, you can see the account data, but where can I find this file on the server? Thank you.

Domain,IP,User Name,Email,Start Date,Disk Partition,Quota,Disk Space Used,Package,Theme,Owner,Server,Unix Startdate,Disk Space Used (bytes),Quota (bytes)
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
/var/cpanel/users

Most of these data are taken from the files in the /var/cpanel/users directory. There is one file for each cPanel account, and the data are stored in the file in plain-text format.

Quota information is taken directly from the operating system's quota system. You can use the quota command to see quota information. For example:

Code:
# quota -v someacct
Replace "someacct" with a valid cPanel account name. This command will show you the quota that is set and the current usage.

The WebHost Manager actually caches the quota data, in order to avoid having to update it for every account every time you view the list of accounts, and the cache is updated every four hours, so changes may not appear instantly.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
updateuserdomains

Also, normally you should not need to manually edit the files in /var/cpanel/users, but if you ever do, make sure to run the following command afterward:

Code:
# /scripts/updateuserdomains
This command reads the /var/cpanel/users files and updates the users cache.
 

garconcn

Well-Known Member
Oct 29, 2009
172
18
68
Actually, I want to find the cPanel ID which over 10GB disk space or 100GB bandwidth on a server. Is there a command to do this? Where is the quota data cache stored?

Thank you.
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Actually, I want to find the cPanel ID which over 10GB disk space or 100GB bandwidth on a server. Is there a command to do this? Where is the quota data cache stored?

Thank you.
I'm unclear on what you're after. Is the List Accounts page not working as expected?
6 links below List Accounts link in the Account Information section of your WHM, is the link to View Bandwidth Usage.

Between the two you should be able to see who's using what.
 

garconcn

Well-Known Member
Oct 29, 2009
172
18
68
I'm unclear on what you're after. Is the List Accounts page not working as expected?
6 links below List Accounts link in the Account Information section of your WHM, is the link to View Bandwidth Usage.

Between the two you should be able to see who's using what.
Sorry. Everything on cPanel works great. :cool:

I just want to create a script to monitor user accounts and sent email to me everyday. Thanks.