Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Reseller .acct file is inaccurate.

Discussion in 'General Discussion' started by steve.arvixe, Aug 19, 2010.

  1. steve.arvixe

    steve.arvixe Registered PartnerNOC

    Aug 19, 2010
    Likes Received:
    Trophy Points:

    There is a file located at /var/cpanel/someuser.accts that usually lists all of the accounts associated with the reseller someuser. This has worked great in the past, and I've used it to build scripts for various tasks. However, just recently I've found a reseller file that is completely out of sync with what WHM (meaning there are missing entries for various users). I know they're out of sync because WHM correctly lists all of the user's accounts under reseller center.

    Can anyone suggest what may be wrong or why the information from both sources is not the same?


    My system information.

    cPanel 11.25.0-R46156 - WHM 11.25.0 - X 3.9 CENTOS 5.5 x86_64 standard
    #1 steve.arvixe, Aug 19, 2010
    Last edited: Aug 19, 2010
  2. cPanelKenneth

    cPanelKenneth cPanel Development Staff Member

    Apr 7, 2006
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    The .accts files are not used by the system and should not be relied upon as authoritative. They are generated for a reseller by that reseller visiting the List Accounts interface in WHM. They are the data file served when a the user clicks the Fetch CSV link in List Accounts.

    To obtain authoritative information on resellers and accounts they own, you should use an API call.

    For example to retrieve a list of Resellers: ListResellerAccounts < AllDocumentation/AutomationIntegration < TWiki

    To list accounts owned by a Reseller: ListResellersAccountsInformation < AllDocumentation/AutomationIntegration < TWiki
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice