site isolation has been denied by your server administrator means the account is not allowed to use per-website isolation, a CloudLinux feature that only the server administrator can switch on. It does not mean CageFS is broken, and the fix is on the admin side, covered in the troubleshooting section below. The rest of this article answers the question behind most CageFS tickets: is this account really caged? The CageFS screen in WHM shows a green toggle and a user list, and neither one is evidence. A CloudLinux server can report CageFS as enabled while a specific account still reads /etc/passwd in full, lists every home directory on the box, and runs gcc. The toggle describes intent. The kernel mount namespace attached to the account’s processes is what enforces isolation, and four commands tell you whether the two agree. You will run them against a named account, compare caged and uncaged output side by side, and work through the failures that leave a server in the gap.
What you’ll accomplish
- A yes or no on whether CageFS isolation is enforced for a named account, from kernel state rather than the UI.
- A repeatable four-command check you can script across every account on the server.
- The distinction between the global CageFS mode, the per-user lists, and the mount namespace that does the work.
- Repairs for a stale skeleton, a user silently excluded from the cage, and a package invisible inside it.
- A plain explanation of the isolation-denied message, so you can answer the ticket instead of chasing
cagefsctl.
Prerequisites
You need root shell access on a cPanel or WHM server running CloudLinux OS 8 or 9, with the cagefs package installed. Everything below reads or writes root-owned paths under /etc/cagefs and /var/cagefs; none of it can be done from a reseller account or from cPanel itself.
Version differences are small but real. CloudLinux OS 8 and 9 behave identically for every command here. On the older 6 and 7 kernels the paths are the same but the skeleton rebuild is slower, so expect --force-update to take minutes rather than seconds.
If you are on plain AlmaLinux, Rocky, or CentOS with cPanel and no CloudLinux licence, none of this applies. cagefsctl will not exist, there is no per-user mount namespace, and account separation rests entirely on Unix permissions plus whatever PHP handler you run. The honest first step there is a permissions audit rather than a CageFS one — file permission and ownership baselines on cPanel covers it.
Throughout, cpuser1 stands for the account you are validating. Substitute it everywhere.
How it works
CageFS gives each account a virtualised filesystem assembled from a shared skeleton at /usr/share/cagefs-skeleton. The skeleton holds a safe subset of the real system: the binaries and libraries an account may see, plus a stripped /etc in which passwd contains only that user and the system IDs. At login, cron start, or PHP process spawn, a PAM module and the CloudLinux kernel place the process into its own mount namespace, bind the skeleton over the real root, and mount the account’s own /home into it. The cage itself lives under /var/cagefs, keyed by username.
Three separate pieces of state decide whether that happens, and confusing them is why a server can look correct and behave otherwise.
The first is the global mode, reported by cagefsctl --display-user-mode. CageFS runs either enabled for everyone except a listed set of exceptions, or disabled for everyone except a listed set. The mode inverts which list matters.
The second is the per-user lists, /etc/cagefs/users.enabled and /etc/cagefs/users.disabled. These are directories, not files — each holds one zero-byte file named after an account. In enabled-for-all mode, users.disabled is the authoritative exception list; in disabled-for-all mode, users.enabled is. That is how an account ends up looking fine in a WHM list while sitting in the wrong directory for the mode the server is in. Migration scripts, a support engineer debugging a compile problem two years ago, and restores from an old server all leave residue here.
The third is the mount namespace itself, and it is the only one that proves anything. Configuration says what should happen at process start; the namespace records what did. A process whose /proc/<pid>/ns/mnt link matches PID 1’s is sharing the host’s view of the filesystem, no matter what the first two pieces of state claim.
Step-by-step
-
Confirm CageFS is installed at all. This takes two seconds and rules out the least interesting explanation first.
cagefsctl --version rpm -q cagefs lve-utilsThe first prints a version string such as
7.4.7-1. The second prints both package names with their release, orpackage cagefs is not installed. Ifcagefsctlis not found, nothing further in this guide applies; check the CloudLinux licence state in CLN before assuming someone removed it deliberately. -
Read the global mode. This is the single most useful command in the guide, and it is the one most often skipped.
cagefsctl --display-user-modeThe output states which of the two modes is active: CageFS enabled for all users except those listed, or disabled for all users except those listed. Write down which one you got, because it decides which directory you read in the next step.
-
Read the per-user lists as directories. Both are directories of zero-byte marker files, so
catwill fail on them and acatthat fails looks a lot like an empty list.ls /etc/cagefs/users.enabled/ | wc -l ls /etc/cagefs/users.disabled/ ls /etc/cagefs/users.disabled/ | grep -x cpuser1In enabled-for-all mode, any name printed by the second command is an account running without a cage. The third prints
cpuser1if this account is excluded, and nothing if it is not. Compare the first number againstls /var/cpanel/users | wc -l: a large gap in disabled-for-all mode means most of the server is uncaged. -
Put the account into the cage if the lists say it is out. These are per-user, immediate, and safe to re-run.
cagefsctl --enable cpuser1Expect no output on success, then re-run step 3’s third command and confirm it prints nothing.
cagefsctl --enable-alldoes the same server-wide; run it during a quiet window, because it touches every account’s mounts. -
Turn CageFS on globally if the mode says it is off.
cagefsctl --enable-cagefs cagefsctl --remount-all--enable-cagefsflips the global switch.--remount-allrebuilds every account’s mounts so the change reaches accounts with processes already running; without it, long-lived PHP-FPM pools keep the namespace they started with. -
Rebuild the skeleton if anything was installed or updated since it was last built.
ls -ld /usr/share/cagefs-skeleton cagefsctl --updateCompare that timestamp against your last
dnf updateor PHP version change.--updaterefreshes the parts of the skeleton that changed and prints its progress. When the skeleton is genuinely inconsistent — a partially applied update, a failed previous run —cagefsctl --force-updaterebuilds it from scratch and takes noticeably longer. -
Prove isolation from inside the account. This is the empirical half, and it is what separates a configured server from an isolated one.
su - cpuser1 -c 'ls /home' su - cpuser1 -c 'wc -l /etc/passwd' su - cpuser1 -c 'ls /usr/bin | wc -l'Caged,
ls /homeprints onlycpuser1,/etc/passwdcomes back around a dozen lines, and the/usr/bincount is a few hundred rather than a few thousand. Uncaged,ls /homelists every account and/etc/passwdruns to hundreds of lines. These still work underjailshell; if the shell isnologin, use step 8 against a real process instead. -
Check the namespace of a process the account is actually running. A
susession is a fair test, but a PHP-FPM child or a cron job is the thing you care about.PID=$(pgrep -u cpuser1 | head -1) readlink /proc/1/ns/mnt readlink /proc/$PID/ns/mntThe two links must differ. An identical value on both lines means the account’s process shares the host mount namespace and is not caged, whatever the previous steps reported. Confirm the positive case by looking at what is mounted in that namespace:
grep -c cagefs /proc/$PID/mountinfoA caged process returns a non-zero count; an uncaged one returns
0andgrepexits non-zero.
Validate it works
Run the whole chain against one named account and require every line to agree:
cagefsctl --display-user-mode
ls /etc/cagefs/users.disabled/ | grep -x cpuser1
su - cpuser1 -c 'ls /home; wc -l /etc/passwd'
PID=$(pgrep -u cpuser1 | head -1); readlink /proc/1/ns/mnt; readlink /proc/$PID/ns/mnt
Isolation is enforced when the mode is enabled-for-all, the grep prints nothing, ls /home shows one directory, /etc/passwd is short, and the two namespace links differ. Anything less than all five is a partial result, and partial results are how servers come to believe they are isolated.
For a fleet, script the same check across /var/cpanel/users and alert on the count of uncaged accounts; that is a far better metric than the WHM toggle. Accounts drift out of the cage during migrations and restores more often than anyone expects, so re-run it after any bulk account move.
Troubleshooting
The WHM screen shows the account enabled, but it sees every home directory. The account is in /etc/cagefs/users.disabled/ and the server is in enabled-for-all mode. Nobody set out to do this; it is usually left behind by a developer who needed a compiler once. cagefsctl --enable cpuser1 removes the marker, then cagefsctl --remount-all makes it take effect on processes that are already running.
Something works outside the cage and fails inside it after an update. The skeleton is stale. A PHP minor upgrade or a dnf update that replaced a shared library leaves the cage pointing at a version that no longer exists, and the symptom is a missing-library error that makes no sense given the package is clearly installed. cagefsctl --force-update rebuilds the skeleton and resolves it. If the same breakage recurs after every update, the CloudLinux post-transaction hook is not firing and the rebuild needs to be part of your own patch runbook.
A package you installed is invisible inside the cage. Nothing installed by a package manager reaches the skeleton by default: the cage sees only what the skeleton was told to include. Add a .cfg file naming its paths under /etc/cagefs/conf.d/, then cagefsctl --force-update to fold it in. Verify with su - cpuser1 -c 'which yourbinary'.
site isolation has been denied by your server administrator. isolation toggles are disabled. contact your hosting provider for more information. This message belongs to per-website isolation, not to the account-level cage this article tests. On CloudLinux that feature is now called CloudLinux Isolates (earlier releases called it website isolation, or site isolation). It is a beta feature inside CageFS that gives each domain of an account its own isolated space, and it must be allowed server-wide before any account can use it. The message means the account holder can see the isolation toggles but has not been allowed to use them. Only the server administrator can change that. Check the current state with cagefsctl --isolates-list. Allow the feature for every account with cagefsctl --isolates-allow-all, or for one account with cagefsctl --isolates-allow <username>. Older CageFS versions use the same commands under the deprecated --site-isolation-* names. Confirm the exact flags against CloudLinux’s Isolates documentation for your version, since the feature is still in beta. Tell the person who opened the ticket both halves: their account-level CageFS isolation, if enabled, is unaffected and still active, and per-website isolation is a decision about the hosting plan rather than a bug.
CageFS looks disabled after a kernel update or a reboot. A kernel that came up without the CloudLinux modules loaded leaves every account uncaged, with no error anywhere obvious. Confirm the running kernel with uname -r, then cagefsctl --remount-all. If the server booted a stock kernel, fix the boot order first; CageFS on a non-CloudLinux kernel is not something you can command your way out of.
When this is the wrong approach
CageFS is a filesystem view, not a container boundary. It restricts what a process can see and execute; it does not partition the network, does not stop an account reaching another site over HTTP, and does not sandbox the kernel surface. A local privilege-escalation bug in a shared kernel is as exploitable inside a cage as outside one. If your threat model needs a real boundary between tenants, the answer is separate VMs or a container runtime, not more CageFS tuning.
CageFS also says nothing about resource abuse. A fully caged account can still exhaust CPU or I/O for everyone else on the box; that is what LVE limits are for, and the two are complementary — CloudLinux LVE limits explained covers the other half.
And it does not stop application-layer compromise. A vulnerable plugin exploited inside a caged account still owns everything that account owns: its files, its database credentials, its mail. Isolation contains the blast radius to one tenant, which is worth having, but the tenant still burns. Detection at the request layer belongs alongside it — see correlating ModSecurity audit entries with false positives. Keep the CloudLinux documentation open for CageFS behaviour and the cPanel documentation for the feature-list side.
If this is the kind of work you’d rather never own again, it’s the daily job of Managed Cloud Ops — book an infrastructure review.