Web Hosting Talk







View Full Version : cPanel - Manually Remove Account


dhunter65
02-21-2007, 12:55 PM
I'm having a problem removing an account from cPanel. I transferred the account to another server which worked without a problem. I then removed the zone file from the original server trying to resolve some e-mail issues. This basically removed the account from WHM. So I started the process of removing the account manually. First I followed these steps:

* 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. (already completed through WHM)
* Delete the /var/cpanel/users/username file.
* Edit /usr/local/apache/conf/httpd.conf to remove the site VirtualHost entry.

But there is still some evidence of the account on the server. If I do a find on "bluemoon" I get the following:

root@host [/]# find . -name bluemoon
./var/cpanel/bandwidth/bluemoon
./var/cpanel/lastrun/bluemoon
./var/spool/cron/bluemoon
./home/virtfs/bluemoon
./home/virtfs/bluemoon/home/bluemoon
./usr/local/cpanel/base/horde/imp/themes/bluemoon
./usr/local/cpanel/base/horde/themes/bluemoon
./etc/proftpd/bluemoon

Should I just delete each of these files? And if so, is that all I need to do?

Thanks

Patrick
02-21-2007, 02:45 PM
First of all, do not remove anything under /home/virtfs - unless you want a very broken system.

The rest of those directories can be removed, although leave the horde directories as "bluemoon" is a skin and unrelated to that individual account.

You may also have to modify and remove the domain(s) from:

/etc/trueuserdomains
/etc/trueuserowners
/etc/localdomains

Delete this file (if it exists):
/var/cpanel/users/bluemoon

nickn
02-21-2007, 04:38 PM
./usr/local/cpanel/base/horde/imp/themes/bluemoon
./usr/local/cpanel/base/horde/themes/bluemoon

This is unrelated..it's a theme for Horde/IMP. Don't delete it.