Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Apr 2006
    Posts
    11

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

    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. #2
    Member
    Join Date
    Apr 2004
    Posts
    22

    Default

    create a new dns zone in whm for the domain name.

    via ssh

    run

    /scripts/updateuserdomains

    then remove/recreate account in whm

  3. #3
    Member
    Join Date
    Apr 2006
    Posts
    11

    Default

    Woot! Got it to work, thanks.

  4. #4
    Member
    Join Date
    Aug 2006
    Location
    Montreal
    Posts
    5

    Default

    there is any way without ssh ? cron jobs ?

  5. #5
    Member
    Join Date
    Apr 2004
    Posts
    22

    Default

    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. #6
    Member
    Join Date
    Aug 2006
    Location
    Montreal
    Posts
    5

    Default

    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. #7
    Member
    Join Date
    Aug 2006
    Posts
    34

    Default

    /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. #8
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    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.
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  9. #9
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    894
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by rpmws
    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.
    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
    Last edited by sneader; 08-17-2006 at 04:56 PM.

  10. #10
    Member
    Join Date
    Apr 2004
    Posts
    22

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Replies: 3
    Last Post: 01-18-2010, 11:11 PM
  2. Moving account but keep dns zone
    By Berbox in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-26-2007, 11:06 AM
  3. dns zone mass deletion
    By hostmedic in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-25-2006, 02:04 PM
  4. Account DNS Zone Management
    By demine0 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-19-2004, 06:46 PM
  5. recovery of accidental admin deletion on the message board t
    By AbeFroman in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-02-2002, 06:36 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube