Files owned by nobody not counted in quota

santrix

Well-Known Member
Nov 30, 2008
229
3
68
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?
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
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.