cPanel Quota Issue

Hello,

Recently there has been issues on some cPanel servers when attempting to obtain the disk quota for specific users. The problem is that it would return N/A in the cPanel account when looking at disk usage. Same result would appear when trying to get disk space for the user manually in the command line:

/usr/local/cpanel/bin/quota $user

cPanel confirmed that the issue is a bug and they have created an internal report on it. For the time being, they are reporting that they were able to temporarily fix the issue by doing the following:

Inside of the file called /usr/local/cpanel/bin/quota. Change this block
from:

}
print $header, $out if $out;
Quota::endmntent();
return 0;
}

To:

}
print $header, $out if $out;
Quota::endmntent();
return run_quota($uid) if scalar %$seen && !$out;

return 0;
}

The only thing that you are really doing here is adding this line:
"return run_quota($uid) if scalar %$seen && !$out;"

g33kadmin

I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....