Editing Cpanel quotas
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | WHM/Cpanel, a popular commercial web-based control panel for Linux, has a tendency to overwrite the special quota files in the | + | WHM/Cpanel, a popular commercial web-based control panel for Linux, has a tendency to overwrite the special quota files in the VPS context. I am referring to: |
<pre> | <pre> | ||
lrwxr-xr-x 1 root root 39 Jun 8 17:27 aquota.group -> /proc/vz/vzaquota/00000073/aquota.group | lrwxr-xr-x 1 root root 39 Jun 8 17:27 aquota.group -> /proc/vz/vzaquota/00000073/aquota.group | ||
lrwxr-xr-x 1 root root 38 Jun 8 17:27 aquota.user -> /proc/vz/vzaquota/00000073/aquota.user | lrwxr-xr-x 1 root root 38 Jun 8 17:27 aquota.user -> /proc/vz/vzaquota/00000073/aquota.user | ||
</pre> | </pre> | ||
− | The result of these being overwritten will be WHM showing "unlimited" quota reports for all users in the system. An quick solution to this is to run these commands from within the | + | The result of these being overwritten will be WHM showing "unlimited" quota reports for all users in the system. An quick solution to this is to run these commands from within the VPS as root: |
<pre> | <pre> | ||
− | rm - | + | rm -rf /aquota.user 2>/dev/null |
− | rm - | + | rm -rf /aquota.group 2>/dev/null |
− | for x in `find /proc/vz/vzaquota/ | tail -2 `; do ln -s $x / ; done | + | unlink /aquota.user 2>/dev/null |
+ | unlink /aquota.group 2>/dev/null | ||
+ | for x in `find /proc/vz/vzaquota/ | tail -1 | xargs find | tail -2 `; do ln -s $x /; done | ||
</pre> | </pre> | ||
== External links == | == External links == | ||
− | * [http:// | + | * [http://cpwiki.org cpWiki] - a wiki about cPanel |
[[Category: Troubleshooting]] | [[Category: Troubleshooting]] |