The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Where is the cPanel account data file?

Discussion in 'General Discussion' started by garconcn, Oct 19, 2010.

  1. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    98
    Likes Received:
    1
    Trophy Points:
    8
    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)
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    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.
     
  3. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    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.
     
  4. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    98
    Likes Received:
    1
    Trophy Points:
    8
    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.
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
  6. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    98
    Likes Received:
    1
    Trophy Points:
    8
    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.
     
Loading...

Share This Page