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.

2gig account showing only 150mb on WHM

Discussion in 'General Discussion' started by benito, Sep 1, 2007.

  1. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    296
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Mar del Plata - Argentina
    Today moving an account from one server to another i the process taking so much time for a 150MB account.

    After a little research i found the account was using something like 1.8 GB in a folder full of pictures. The account override his limit of 300MB, on cpanel stats shows they are using only 150MB, i see the same ammount when list accunts in WHM.

    We only can see the real used space via SSH or in Cpanel using the Show Disk Usage Viewer.

    This is a bug or something ? Im afraid about having more accounts wich are overusing our services.
     
    #1 benito, Sep 1, 2007
    Last edited: Sep 1, 2007
  2. security

    security Member

    Joined:
    Aug 18, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    what is the owner of the pictures files??

    if it is nobody whm will not count it

    try to chown that files to fix that
     
  3. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    security is correct, since you are not running phpsuexec, you still can be sure your owners are set to own the files in their account so they do tally up the space.

    Run this script regularly. I run this daily on many servers. Some may run it once a week or month or whatever, but its truly no load issue and quite fast. In short, this will set ownership of nobody files to the proper account in which they reside.

    put this in a file and name it however you like. Save it to
    /etc/cron.daily

    chmod to 0755 owner root.root

    and forget about it. I consider this part of the system.

    #!/bin/bash
    cd /var/cpanel/users
    for user in *
    do
    chown -R $user.$user /home/$user/public_html/*
    done
     
  4. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    296
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Mar del Plata - Argentina
    Thanks a lot, i have several home dirs, can i add this line ?

    chown -R $user.$user /home2/$user/public_html/*



    Edit: Thanks again, i found a lot of accounts over his quotas, this script should be included on every cpanel install.
     
    #4 benito, Sep 1, 2007
    Last edited: Sep 1, 2007
  5. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    Glad it worked out for you.
     
Loading...

Share This Page