Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    123

    Default Terminating reseller accounts without primary domain

    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. #2
    Member
    Join Date
    Oct 2006
    Posts
    312

    Default

    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
    .
    RTG (Asia) Network
    Unmetered ®cPanel VPS from $28.00
    Shared & Reseller Accounts from $2.00
    Unmetered Dedicated Servers from $58.00
    Your account will be setup AUTOMAGICALLY upon payment.

  3. #3
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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

  4. #4
    Member
    Join Date
    Oct 2004
    Posts
    123

    Default

    Quote Originally Posted by brendanrtg View Post
    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

    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.

Similar Threads & Tags
Similar threads

  1. Filed with Developers Reseller's domain not shown in the WHM - Show Reseller Accts [Case 56116]
    By AlexAT in forum Feature Requests for cPanel/WHM
    Replies: 2
    Last Post: 09-03-2010, 04:53 PM
  2. SSL Certs on a Reseller's primary domain
    By itzhero in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-30-2010, 01:07 AM
  3. Terminating/Re-creating reseller acct.
    By macomb in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-24-2006, 09:41 PM
  4. ERROR when terminating reseller!
    By jackie46 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-18-2005, 01:12 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube