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 owned by nobody not counted in quota

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

  1. santrix

    santrix Well-Known Member

    Joined:
    Nov 30, 2008
    Messages:
    223
    Likes Received:
    2
    Trophy Points:
    18
    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

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
Loading...

Share This Page