Skip to content

WHM feature lists — what actually happens when a feature is disabled

Disabling a feature in a WHM feature list hides the UI tile but not always the underlying capability. A short guide to the gap between visible and enforceable.

The reseller wants to hide the Cron Jobs tile from a shared hosting plan, ticks the box in the feature list, and considers the job done. A month later an enterprising customer figures out that crontab -e over SSH still works fine, and now there’s a wp-cron loop running every minute on a plan that was meant to be cron-free. Feature lists in WHM control UI surfaces, not all backend capabilities, and treating them as a security boundary causes incidents.

What’s happening

A WHM feature list is a YAML-shaped allowlist read by cpsrvd at cPanel render time. When a feature is off, the corresponding cPanel UI tile vanishes from the customer’s interface. What it does not do is disable the underlying daemon or remove command-line access to the same capability. SSH-enabled users can still run crontab, mysql, mail, wget regardless of feature-list state. The feature list is a customer-facing menu policy; it is not an LSM hook, not an SELinux policy, not a firewall rule. The features that genuinely cannot be exercised when disabled are those that route exclusively through the cPanel UI — the file manager, the backup wizard, the email account creator. The rest still run.

How to verify

For any feature list, the on-disk definition is in /var/cpanel/features/<listname>. The default is /var/cpanel/features/default:

cat /var/cpanel/features/default
whmapi1 list_featurelists
whmapi1 get_featurelist_data featurelist=corporate
diff /var/cpanel/features/default /var/cpanel/features/corporate

For a specific account, the active list lives in their user file: grep FEATURELIST /var/cpanel/users/acme. To audit whether a “disabled” feature is actually unreachable, test the backend directly — log in as the user and try the command the feature would have surfaced.

The fix

  1. Treat feature lists as UI hygiene, not security. If a capability must be unreachable, enforce it where the daemon runs: disable shell access (noshell), drop the binary into a chroot, set JailDir in cPanel, or remove the package altogether.
  2. For cron specifically, disable shell, set Shell in /var/cpanel/users/<user> to jailshell or noshell, and audit /var/spool/cron/<user> directly. The feature list does not touch /var/spool/cron/.
  3. For databases, the feature list hides the MySQL Databases tile but cpapi2 Mysql adddb still works from any script the user can execute. To truly block, remove the user’s MySQL privileges or move them to a CloudLinux LVE with no MySQL socket.
  4. Audit feature lists quarterly against actual customer behaviour. grep -r mysql /home/*/cron/ finds the customers who routed around a feature-list block. The list is a starting point, not a fence.

When customer plans need genuine capability boundaries — not just UI tiles — Stack Harbor’s cPanel server management practice maps each feature to the underlying daemon and applies the right enforcement layer for each one.