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!

Terminating reseller accounts without primary domain

Discussion in 'General Discussion' started by apc1, Feb 10, 2007.

  1. apc1

    apc1 Well-Known Member

    Joined:
    Oct 18, 2004
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    166
    Some time ago transferred a couple of accounts from another server with reseller priveledges.

    I need to terminate these accounts and all user accounts under them, but they have no domain associated with the reseller account, and consequently do not appear in the list of accounts in reseller center account termination.

    How can I get around this from the command line if necessary?

    Thanks.
     
  2. brendanrtg

    brendanrtg Well-Known Member

    Joined:
    Oct 4, 2006
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    166
    This is going to be a TEDIOUS & LONG processs as far as I know.

    For a start, you can try adding the missing main domain back by editing /var/cpanel/users/YSERNAME

    If that fails to you cannot remember the user (unlikely), then:

    1. Terminate those you can see under WHM > TERMINATE MULTIPLE ACCOUNTS
    2. Terminate their Zones under WHM > DELETE ZONE ENTRIES (those you cannot see)
    3. EDIT as root /etc/passwd, /etc/group and remove their usernames
    4. Go to /home and remove their directories with rm -rf /USERNAME
    5. Go to /var/cpanel/users and DELETE their USERNAME

    The above "should" make a "clean" delete of those stealth accounts, although there are other entries which in my opinion are safe to ignore.

    I am sure there must be an easier way and I have yet to figure them out :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,561
    Likes Received:
    42
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Along with what brendanrtg said, you'll also need to modify the /var/cpanel/reseller* files to remove all instances of the reseller account name
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. apc1

    apc1 Well-Known Member

    Joined:
    Oct 18, 2004
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    166

    Thanks.

    The account file does not exist in /var/cpanel/users

    I can see his accounts in terminate multiple accounts, but I would like to zap everything.

    Surely terminating multiple accounts will zap the directories and DNS anyway?

    I just need to remove the reseller account itself then.
     
Loading...

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