YodaCows

Registered
May 29, 2006
4
0
151
I deleted a user and everything appeared to be fine. The user no longer appeared in List Accounts
However, the user/domain is still showing in all other areas.
When I try to terminate the account it says
Warning!.. system user myuser does not exist!
I tried manually removing it from trueuserdomains, but that didn't really solve the problem either.
The domain doesn't show up, but you can see the box where the domain should be showing up in all of the areas I mentioned above.

I tried re-creating the user, then terminating it again, but it still didn't fully remove it.
The user doesn't exist, but the domain still exists somewhere.
Do I just have to give it time? It's only been about 10 hours since I tried to remove it the first time.

Besides trueuserdomains, where do I need to remove the user? Are there any other scripts to run?
/etc/userdomains is empty, so is /cpanel/users

I already tried the following
  • /scripts/upcp --force
  • /scripts/updateuserdomains
  • userdel -r myuser

Thanks.
 
Last edited:

mitul

Well-Known Member
Feb 8, 2003
291
0
166
"userdel -r myuser" is not correct method of deleting users.

You should have login to WHM and then terminate account.
 

YodaCows

Registered
May 29, 2006
4
0
151
mitul said:
"userdel -r myuser" is not correct method of deleting users.

You should have login to WHM and then terminate account.
I don't think you quite understand what I wrote.
I tried terminating the account in WHM.
It deleted it from List Accounts, but it is still visible everywhere else in WHM.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
OTTOMH:

Delete /var/cpanel/users/accountname

Remove any virtualhost entries from httpd.conf

Run /scripts/updateuserdomains

That should probably fix it, unless it left everything behind, in which case you'd want to look at deleting the zone and the files in /home/accountname
 

YodaCows

Registered
May 29, 2006
4
0
151
chirpy said:
Delete /var/cpanel/users/accountname
The user doesn't exist though, they aren't in /users

chirpy said:
Remove any virtualhost entries from httpd.conf
There are no entries for that domain

chirpy said:
Run /scripts/updateuserdomains
Did it again, still didn't help

chirpy said:
That should probably fix it, unless it left everything behind, in which case you'd want to look at deleting the zone and the files in /home/accountname
I looked through everything, still couldn't find any references to the domain.
 

elix

Well-Known Member
Jan 18, 2005
67
0
156
If there is no file for that user in /var/cpanel/users then it really shouldn't be showing up anywhere else via cPanel, can you double check to see if there is a file there?
 

YodaCows

Registered
May 29, 2006
4
0
151
elix said:
If there is no file for that user in /var/cpanel/users then it really shouldn't be showing up anywhere else via cPanel, can you double check to see if there is a file there?
I just checked with ls and ls -l ........its empty
 

HEKTO

Member
Dec 17, 2004
13
0
151
I always see terminated domains in domains list at 'Terminate Domain' screen, because WHM does not remove a line with domain information from /etc/trueusersdomains.

FC4, WHM 10.8.0 cPanel 10.8.2-S120