The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Files left behind after account termination

Discussion in 'General Discussion' started by zamrg, Nov 4, 2010.

  1. zamrg

    zamrg Active Member

    Joined:
    Oct 17, 2010
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  2. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  3. zamrg

    zamrg Active Member

    Joined:
    Oct 17, 2010
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
Loading...

Share This Page