Files left behind after account termination

zamrg

Active Member
Oct 17, 2010
34
0
56
I was just wondering whether it's normal for cPanel to leave a few useless files behind after terminating account; specifically:

/usr/local/apache/conf/sites/domain.conf
/usr/local/apache/conf/sites/www.domain.conf

/usr/local/frontpage/www.domain.com:8081.cnf
/usr/local/frontpage/domain.com:8081.cnf
/usr/local/frontpage/domain.com:443.cnf
/usr/local/frontpage/www.domain.com:443.cnf

/usr/local/apache/domlogs/ftp.domain.com-ftp_log.offset
/usr/local/apache/domlogs/ftp.domain.com-ftp_log.offsetftpbytes
/usr/local/apache/domlogs/domain.com
/usr/local/apache/domlogs/domain.com-bytes_log
/usr/local/apache/domlogs/domain.com-error_log

/var/cpanel/maxemailstracker/domain.com

/var/spool/mail/domain

/root/.cpanel/datastore/_usr_bin_dig_@ip_domain.com

Is there any way to stop it from creating any frontpage files? I don't support frontpage so no use having it create anything unnecessarily.
 

garrettp

Well-Known Member
PartnerNOC
Jun 18, 2004
312
2
166
cPanel Access Level
DataCenter Provider
Rebuild Apache and de-select the "Frontpage" module before building to kill FP support and file creation.


In my testing i found that the files in domlogs/ were removed successfully but the sites/ files were not.

Not sure if this is a bug or intentional, but if it really bothers you, a script could be written to remove all user/group owned files for the user being deleted (or just explicitly delete the files you mentioned). The killacct script has a hook for "/scripts/postkillacct" that you can use to achieve this.
 

zamrg

Active Member
Oct 17, 2010
34
0
56
Rebuild Apache and de-select the "Frontpage" module before building to kill FP support and file creation.


In my testing i found that the files in domlogs/ were removed successfully but the sites/ files were not.

Not sure if this is a bug or intentional, but if it really bothers you, a script could be written to remove all user/group owned files for the user being deleted (or just explicitly delete the files you mentioned). The killacct script has a hook for "/scripts/postkillacct" that you can use to achieve this.
thanks

I actually already have EasyApache compile without FrontPage support so I'm guessing cPanel doesn't check before creating these respective configs.

I'm not too concerned about the extra files; but I may write a hook to move them along with a backup of the terminated account to a central directory.