Changing the ownership of resold accounts is controlled with the WHM interface and only takes a few clicks.
Procedure
Log into WHM as root.
Navigate to either "Change Ownership of an Account" for one account, or "Change Ownership of Multiple Accounts" for multiple accounts.
Follow the on-screen steps to complete the process.