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.

Accidental deletion of DNS zone, now the account in undeletable?

Discussion in 'Bind / DNS / Nameserver Issues' started by HLFusion, Aug 3, 2006.

  1. HLFusion

    HLFusion Member

    Joined:
    Apr 21, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    One of my resellers decided to delete a DNS zone of an account, because there were some URL forwarding issues. Now the account is unreachable, although the account is still active. It no longer shows up in WHM/cPanel and it can't be accessed, but the stuff is still there.

    The only solution I thought of was, creating a new account on top of it. But I could not create it since WHM was telling me the user already exists. I can’t seem to delete this user and account in WHM since it is no longer listed ever since I deleted the DNS zone. I decided to create one with a new username and just disregard the old username for a while. It worked, I mean creating the account worked.

    But when visting the site, it was still pointing to the old username account. I clicked on Terminate an Account hoping I get both usernames deleted. After the terminate account process, I tried to create it again and it still said that the username already exist. So my real problem was deleting this user name and the hosting account attached to it.

    Anyone know how I can delete this account?
     
  2. jdfcomputers

    jdfcomputers Member

    Joined:
    Apr 12, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    create a new dns zone in whm for the domain name.

    via ssh

    run

    /scripts/updateuserdomains

    then remove/recreate account in whm
     
  3. HLFusion

    HLFusion Member

    Joined:
    Apr 21, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Woot! Got it to work, thanks.
     
  4. samuel514

    samuel514 Member

    Joined:
    Aug 2, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Montreal
    there is any way without ssh ? :confused: cron jobs ?
     
  5. jdfcomputers

    jdfcomputers Member

    Joined:
    Apr 12, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    The SSH script

    /scripts/updateuserdomains

    may not be required every time, but it is recommended if the account does not show up in the whm-list accounts
     
  6. samuel514

    samuel514 Member

    Joined:
    Aug 2, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Montreal
    yep i have the same problem but i don't have ssh access to the server. Maybe i should contact the assistance but i prefer to do it myself :)
     
  7. ekhwan

    ekhwan Active Member

    Joined:
    Aug 12, 2006
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    /scripts/updateuserdomains

    I tried to do this but the user is still not showing in the whm accounts list

    The result of the script were:

    [userdomains] user xyz: missing DNS= line in /var/cpanel/users/xyz at /scripts/updateuserdomains line 206.

    when i tried /var/cpanel/users/xyz I got the reply saying permission denied.

    Can anyone help on this please.
     
  8. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA
    if you want to just kill the account (delete) it and have it ignore most errors ..you can use /scripts/killacct on a shell session and I **think** that will do it. May help for those with root ssh access and want to save time by not dealing with the errors.
     
  9. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    I had the same problem, and the cPanel tech also suggested trying to delete the account with the killacct script. However, it does not work. Here is the output that I receive (where someacct is the name of the account I'm trying to delete)

    root@www8 [~]# /scripts/killacct someacct
    Collecting Domain Name and IP....
    User: someacct
    Domain:
    Error: invalid domain
    root@www8 [~]#

    Then I tried the updateuserdomains script and that isn't working either:

    root@www8 [~]# /scripts/updateuserdomains
    [userdomains] user someacct: missing DNS= line in /var/cpanel/users/someacct at /scripts/updateuserdomains line 206.
    root@www8 [~]#


    UGH. Word to the wise. Don't EVER click "Delete DNZ Zone" in WHM.

    - Scott
     
    #9 sneader, Aug 17, 2006
    Last edited: Aug 17, 2006
  10. jdfcomputers

    jdfcomputers Member

    Joined:
    Apr 12, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    The error you are getting is easy to fix

    user someacct: missing DNS= line in /var/cpanel/users/someacct at /scripts/updateuserdomains line 206


    in ssh

    nano -w /var/cpanel/users/someotheruser

    see how dns= line has his domain name

    then open the one you want

    nano -w /var/cpanel/users/someacct

    and add the dns=withhisdomain.com

    then you can kill the account.
     

Share This Page