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.

Reseller .acct file is inaccurate.

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

  1. steve.arvixe

    steve.arvixe Registered
    PartnerNOC

    Joined:
    Aug 19, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    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?

    Regards,

    EDIT:
    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

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    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
     
Loading...

Share This Page