Cpanel account partially installed, how do I delete it?

Funkadelic

Well-Known Member
Feb 10, 2006
73
0
156
I have a cPanel account that was unsuccessfully installed to some extent because it could not be found in the "list accounts." I have deleted the username in the /home and I also deleted the virtualhost out of the apache config but it still gives me an error that the username still exists, how can I erase it completely from the system so I can install the account?
 

Stefaans

Well-Known Member
Mar 5, 2002
461
4
318
Vancouver, Canada
WHM creates a Linux/Unix user as well when you create a new account. Even though WHM does not list the user, it is probably still defined in your system.

To remove the user:
Code:
userdel -r username
where username is the name of the particular user.

To read more about the userdel command:
Code:
man userdel
I hope this helps ;)
 

Funkadelic

Well-Known Member
Feb 10, 2006
73
0
156
However /usr/sbin/userdel username worked but even after installing the account a second time, it still is not displaying in the list accounts :mad:

This is what I see in the WHM error logs:

Internal Error: "" Normal Connection Timeout (Probably closed browser on a HTTP/
1.1 session) at cpsrvd.pl line 1572.
Creating directory buildapache
Internal Error: "" Normal Connection Timeout (Probably closed browser on a HTTP/
1.1 session) at cpsrvd.pl line 1572.
[Thu Jun 8 21:12:10 2006] [warn] NameVirtualHost 65.23.154.156:80 has no Virtua
lHosts
[Thu Jun 8 21:15:12 2006] [warn] NameVirtualHost 65.23.154.156:80 has no Virtua
lHosts
[Thu Jun 8 21:17:32 2006] [warn] NameVirtualHost 65.23.154.156:80 has no Virtua
lHosts
Content-type: text/html

Internal Error: "" Normal Connection Timeout (Probably closed browser on a HTTP/
1.1 session) at cpsrvd.pl line 1572.
unable to load certificate
2788:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:632:Expect
ing: TRUSTED CERTIFICATE
Internal Error: "" Normal Connection Timeout (Probably closed browser on a HTTP/
1.1 session) at cpsrvd.pl line 1572.
Internal Error: "" Normal Connection Timeout (Probably closed browser on a HTTP/
1.1 session) at cpsrvd.pl line 1572.
--More--(8%)
 
Last edited:

Funkadelic

Well-Known Member
Feb 10, 2006
73
0
156
No matter what I do I can't restore the account to show in the list accounts, there must be something interferring with this somehow.

I found this on a forum:


/scripts/upcp --force
Those cPanel coders are pretty smart, and running this will do a manual update of the software. It can sometimes find and repair these sorts of errors. As a last resort, you may want to remove the account manually...

* userdel -r username to remove the user and home directory
* groupdel groupname to remove the group
* Delete the zone from /var/named and edit /etc/named.conf to remove the domain from BIND.
* Delete the /var/cpanel/users/username file.
* Edit /usr/local/apache/conf/httpd.conf to remove the site VirtualHost entry.

Sadly however it still does not work, from the update script to the manually terminating account and reinstalling it, just doesn't want to show correctly...
 
Last edited: