Skip to content

Modifying a cPanel account's quota, bandwidth, and limits in WHM

How to change disk quota, bandwidth, and per-account limits in WHM — and why a one-off override drifts from the package unless you do it deliberately.

Bumping a customer’s disk quota or bandwidth in WHM takes ten seconds, and that is exactly why it goes wrong. The Modify an Account screen edits this one account and silently detaches the changed values from its package. Do it a few dozen times across a fleet and you have accounts that no longer match the plan they are nominally on, so reapplying the package either reverts the bump or skips the account. Knowing when to edit the account versus edit the package is the whole skill here.

What’s happening

Every cPanel account is created from a package that carries disk quota, bandwidth limit, max addon/parked/sub domains, max databases, max email accounts, and a feature list. When you open WHM » Account Functions » Modify an Account and change the quota, WHM writes the new number into that account’s own record (/var/cpanel/users/<user>) as an explicit value. It does not change the package, and from that moment the account’s quota is an override — it no longer follows the package. The package field for that account still names the original plan, which is what makes the drift invisible: WHM lists the account as “starter” while its quota is whatever you typed.

This matters because reapplying a package (Packages » Edit a Package, or the API) pushes the package’s values back onto every account on it. Depending on how you reapply, your manual bump is either overwritten (you lose the change) or preserved as an override (the account permanently diverges). Neither is wrong, but you have to decide on purpose. The clean alternatives: edit the package when the change should apply to a whole tier, or move the account to a different package when it has genuinely outgrown its plan.

How to verify

See what the account currently has versus what its package defines:

# The account's effective quota, bandwidth, and limits
whmapi1 accountsummary user=acmecorp
quota -u acmecorp

# The package the account names, and that package's defaults
grep -i 'PLAN' /var/cpanel/users/acmecorp
whmapi1 getpkginfo pkg=starter

If accountsummary quota differs from the package’s QUOTA, the account already carries an override. Check the raw user file to see which fields were pinned:

# Per-account overrides live here as explicit KEY=value lines
grep -iE 'QUOTA|BWLIMIT|MAXADDON|MAXSUB|MAXSQL|MAXPOP' /var/cpanel/users/acmecorp

To change a single account from the command line instead of the UI:

# Disk quota in MB (0 or 'unlimited' for no cap)
whmapi1 modifyacct user=acmecorp QUOTA=20480

# Monthly bandwidth limit in MB
whmapi1 limitbw user=acmecorp bwlimit=204800

The fix / steps

  1. Decide scope before you touch anything. One account needs more room → edit the account. A whole tier is too tight → edit the package. The account has outgrown its plan entirely → move it to a bigger package. Picking the wrong lever is what creates fleet drift; picking the right one keeps the account in sync with something you can reason about.
  2. For a single account, use Modify an Account. In WHM » Account Functions » Modify an Account, select the user, change Disk Space Quota, Bandwidth Limit, or the Max fields, and save. Understand that you have just created overrides on those fields — note it somewhere, because WHM will keep showing the account under its old package name.
  3. Raise the disk quota the right unit. The field is in MB unless you tick Unlimited. Setting it below current usage does not delete data, but it stops new writes and triggers over-quota mail rejections — confirm quota -u <user> shows headroom after the change.
  4. Change bandwidth knowing it resets monthly. The bandwidth limit caps the rolling month; raising it lifts a suspended-for-overage account immediately, but the counter still resets on the billing cycle. If a customer hits the cap every month, that is a signal to move them up a tier, not to keep nudging the number.
  5. Edit the package when the whole tier should change. WHM » Packages » Edit a Package, change the value, save. The edit alone does not touch existing accounts — you then reapply it (see the package-reapply runbook) to push the new value out. This is the correct path when “starter should now include 20 GB,” not a per-account bump.
  6. Move the account to a different package when it has outgrown its plan. Use WHM » Account Functions » Upgrade/Downgrade an Account (changepackage) to put it on a larger plan wholesale. This replaces the account’s quota, bandwidth, limits, and feature list with the new package’s values and clears the ad-hoc drift in one move.
  7. Watch the dependent limits, not just disk. Raising disk does nothing for a customer blocked by Max Databases or Max Email Accounts. Those are separate fields on the same screen; check which limit they actually hit (grep MAXSQL /var/cpanel/users/<user>) before assuming it is space.
  8. Reconcile drift periodically. Once a quarter, list accounts whose effective quota differs from their package and decide for each: fold the change into the package, move the account up a tier, or leave the override and document why. Unmanaged overrides are how a “standard” plan ends up meaning forty different things.

Quota changes are trivial; quota changes that quietly desync a hundred accounts from their plans are a slow-burning mess. Stack Harbor keeps account resources reconciled with their packages under cPanel server management — start a conversation if your fleet has drifted.