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.

WHM - remapping accounts to their resellers

Discussion in 'General Discussion' started by chamelion, Oct 6, 2007.

  1. chamelion

    chamelion Registered

    Joined:
    Aug 28, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    hey guys,

    just restored a server from an rsync backup. problem now is that i have a couple of hundred accounts all under root, when they're supposed to be resellers and sub accounts of resellers.

    any idea if its just some file which contains all the mappings or do i need to go through all these hundreds of accounts and reassign them??

    f i go to reseller center, i can even SEE the correct resellers in the drop down menu. BUT when i say show reseller accounts, everyone is owned by root.

    furthermore, if i remove reseller priveledges and re-add them, they pop up again as a proper reseller in show reseller accounts, but still with no subaccounts.

    the real kicker is when i go to one of the known subaccounts and say change owner, it shows the correct owner as the reseller, yet does not appear under that reseller in show reseller accounts (nor in their WHM's list account list).

    /scripts/rebuildcpusers did not work.

    also, i just noticed that show reseller accounts also shows "undefined" for every single accounts' package. but if i click on change ownership of account, and click save (since its already selected the right reseller and says current owner next to it) it not only goes into the correct place under its reseller in show reseller accounts, but the package just appears out of the blue.

    thanks!
     
  2. chamelion

    chamelion Registered

    Joined:
    Aug 28, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    any ideas?
     
  3. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    I find this happens when you do not transfer your resellers first. Without reseller accounts being available when non-resellers are are transferred, root becomes the owner since the resellers are not know to the system at the time.
     
  4. deieno

    deieno Well-Known Member

    Joined:
    Nov 16, 2003
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Floripa - Brazil
    I have the same situation here... if you found a solution, please post here....
    thanks
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    IIRC, the relevant files are:

    /etc/trueuserdomains
    /etc/trueuserowners


    You need to rsync those files from the backup disk to have the resellers set correctly. If you modify those files you should probably run:

    /scripts/updateuserdomains
     
Loading...

Share This Page