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

HLFusion

Member
Apr 21, 2006
11
0
151
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?
 

jdfcomputers

Member
Apr 12, 2004
22
0
151
create a new dns zone in whm for the domain name.

via ssh

run

/scripts/updateuserdomains

then remove/recreate account in whm
 

jdfcomputers

Member
Apr 12, 2004
22
0
151
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
 

samuel514

Member
Aug 2, 2006
5
0
151
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 :)
 

ekhwan

Active Member
Aug 12, 2006
33
0
156
/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.
 

rpmws

Well-Known Member
Aug 14, 2001
1,787
10
318
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.
 

sneader

Well-Known Member
Aug 21, 2003
1,195
68
178
La Crosse, WI
cPanel Access Level
Root Administrator
rpmws said:
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:

jdfcomputers

Member
Apr 12, 2004
22
0
151
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.