Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Files owned by nobody not counted in quota

Discussion in 'General Discussion' started by santrix, Jul 13, 2009.

  1. santrix

    santrix Well-Known Member

    Nov 30, 2008
    Likes Received:
    Trophy Points:
    As well as mysql databases not being counted into a user's quota, there also appears to be an issue with files that are uploaded via PHP when running PHP as a module.

    Many of my customer's sites use some form of content management, and this often means that files are uploaded and end up on the server being owned by the nobody user (as PHP runs as nobody).

    Without getting into the reasons for this, and why it is or isn't a good idea, I would like to know if there is a way to get WHM to count these files in with the user's current usage as I have some users who are way over quota, and are getting away with it because in WHM Account Information - "List Accounts" it looks like they are within quota.

    Strangely, if I go into Cpanel for that user, and look at Disk Usage then everything appears correct (i.e. the usage is counted up properly).

    Anyone else fallen prey to this shortcoming?
  2. cPanelKenneth

    cPanelKenneth cPanel Development Staff Member

    Apr 7, 2006
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Quota based reports will only report on files and directories that are owned by the account. Files and directories owned by the nobody account are not owned by the account you are examining.

    The Disk Usage utility does not examine ownership, it merely does an equivalent of 'du -hs' on the home directory.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice