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.

cpanel wont clear out..even when deleted

Discussion in 'General Discussion' started by bigdaddybryce, Dec 14, 2003.

  1. bigdaddybryce

    bigdaddybryce Member

    Joined:
    Nov 16, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    i created a new account, and then my user did something to mess it up. he asked me to terminate his account and then create a new one...however, when i did, i recreated it, with a different IP and it was still showing disk usage (700 megs) and also showing his Mysql tables and users. He mentioned something about creating a backup and then trying to unpack it. I have deleted the account in WHM, switched Ips and still not working.

    Whats happening
     
  2. hot_wired13

    hot_wired13 Active Member

    Joined:
    Oct 17, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    127.0.0.1
    the problem is, the mysql db's are not in the /home directory. they are in the /var/db/mysql directory. the problem with cpanel remove script is that it wont delete the databases... which is very strange.

    as for the file size blahblah thingy, try running the quotas repair script - should help. if not, post back here.. :)
     
  3. bigdaddybryce

    bigdaddybryce Member

    Joined:
    Nov 16, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    OK, i ran /scripts/fixquota and it ran through and reset all quotas, but still showed 670 megs usage. i see no files in the file manager...

    i have terminated and recreated the account, and yet it still shows it.

    i have used the same username each time, is that what is doing it..i have to keep the same username though...is there anyway to delete all the files under that user..every file
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    You can find all files owned by a user in SSH by entering
    find / -user USERNAME -group USERNAME -type f -print | more
    replacing USERNAME with the actual username.

    I found this elsewhere in these forums.
     
  5. bigdaddybryce

    bigdaddybryce Member

    Joined:
    Nov 16, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    heres what i get...

    root@server [~]# find / -user yegor -group yegor -type f -print | more
    find: /proc/13569/fd/4: No such file or directory
    /tmp/cpanel.TMP.0CvPMuL4sbuyJlrk
    /tmp/cpanel.TMP.Dn7ZrSlA5wkwDbo4
    /tmp/cpanel.TMP.n82_J0NuuR1ukwnh
    /tmp/cpanel.TMP.Of9Vpb5IVwYBYpe3
    /tmp/cpanel.TMP.e8nsXj9mwv0GhYSG
    /tmp/cpanel.TMP._F6gxdYMnGaT74CH
    /tmp/cpanel.TMP.lYfD2h8AWFcgrCf1
    /tmp/cpanel.TMP.ilpOBFcG_8p8TCYf
    /etc/vfilters/hpixel.planetboredom.net
    /usr/local/frontpage/www.planetobredom.net:80.cnf
    /usr/local/frontpage/www.planetboredom.net:80.cnf
    /home/yegor/public_html/_vti_pvt/frontpg.lck
    /home/yegor/public_html/_vti_pvt/service.lck
    /home/yegor/public_html/_vti_pvt/service.cnf
    /home/yegor/public_html/_vti_pvt/.htaccess
    /home/yegor/public_html/_vti_pvt/service.pwd
    /home/yegor/public_html/_vti_pvt/service.grp
    /home/yegor/public_html/_vti_pvt/services.cnf
    /home/yegor/public_html/_vti_pvt/.roles
    /home/yegor/public_html/_vti_pvt/bots.cnf
    /home/yegor/public_html/_vti_pvt/botinfs.cnf
    /home/yegor/public_html/_vti_pvt/doctodep.btr

    ...skipping one line
    /home/yegor/public_html/_vti_pvt/writeto.cnf
    /home/yegor/public_html/_vti_pvt/access.cnf
    /home/yegor/public_html/_vti_pvt/svcacl.cnf
    /home/yegor/public_html/postinfo.html
    /home/yegor/public_html/.htaccess
    /home/yegor/public_html/_vti_log/.htaccess
    /home/yegor/public_html/_private/.htaccess
    /home/yegor/public_html/_vti_txt/.htaccess
    /home/yegor/public_html/_vti_cnf/.htaccess
    /home/yegor/public_html/_vti_bin/_vti_adm/.htaccess
    /home/yegor/public_html/_vti_bin/_vti_aut/.htaccess
    /home/yegor/public_html/_vti_bin/.htaccess
    /home/yegor/public_html/_vti_inf.html
    /home/yegor/tmp/analog/12.html
    /home/yegor/tmp/analog/type.png
    /home/yegor/tmp/analog/dir.png
    /home/yegor/tmp/analog/cache
    /home/yegor/tmp/webalizer/dns_cache.db
    /home/yegor/tmp/awstats/awstats.planetboredom.net.conf
    /home/yegor/tmp/awstats/awstats122003.planetboredom.net.txt
    /home/yegor/tmp/lastrun
    /home/yegor/tmp/lastrun.bw






    is it safe to delete all these files
    and if so...how do i go about it
     
  6. bigdaddybryce

    bigdaddybryce Member

    Joined:
    Nov 16, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    anybody
     
  7. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    login inside shell and go to this directory

    /home/yegor/

    Do a "du -h" and post the results here.

    Also is there any mysql db existing for this user ? Check that as well.
     
  8. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    In shell, enter the following lines:


    rm -f /tmp/cpanel.TMP.*
    rm -f /etc/vfilters/hpixel.planetboredom.net
    rm -f /usr/local/frontpage/www.planetobredom.net:80.cnf
    rm -f /usr/local/frontpage/www.planetboredom.net:80.cnf
    rm -Rf /home/yegor


    That will give you a clean slate.
     
  9. bigdaddybryce

    bigdaddybryce Member

    Joined:
    Nov 16, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1


    root@server [~]# cd /home/yegor
    root@server [/home/yegor]# du -h
    4.0K ./mail
    4.0K ./public_ftp/incoming
    8.0K ./public_ftp
    4.0K ./public_html/cgi-bin
    56K ./public_html/_vti_pvt
    8.0K ./public_html/_vti_log
    8.0K ./public_html/_private
    8.0K ./public_html/_vti_txt
    4.0K ./public_html/images
    8.0K ./public_html/_vti_cnf
    8.0K ./public_html/_vti_bin/_vti_adm
    8.0K ./public_html/_vti_bin/_vti_aut
    24K ./public_html/_vti_bin
    136K ./public_html
    156K .
     
  10. bigdaddybryce

    bigdaddybryce Member

    Joined:
    Nov 16, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    did this and still showing 600 megs disk usage
     
  11. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    This should be done only once you have deleted the domain from inside the cpanel. Otherwise if you just run the above commands you have the domain already setup inside httpd.conf, named.conf, proftpd / pure-ftpd etc.

    Once you delete the domain from cpanel, run the above commands to clear wat ever is left.

    You mite even want to delete the mysql db from the /var/lib/mysql/user (if cpanel doesn't delete it)
     
  12. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    does the user have any mysql dbs ???

    PM me with ur server info, i will try to fix it for you.
     
  13. bigdaddybryce

    bigdaddybryce Member

    Joined:
    Nov 16, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    ok, i deleted from CPANEL and then ran it again and it worked. thanks a lot, i really appreciate it, you guys are great :) :) :)
     
  14. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Good to hear that your probs is solved.

    Cheers!

    :)
     
Loading...

Share This Page