cPanel uses virtfs for its shell jailing. Virtfs is a system which creates a
virtual filesystem in which a user is restricted to which simulates a real
fully functional system within the server.
When cPanel creates the jail shell environment for a user, it creates a
directory in /home/virtfs/ with the name of the username, similar to the
entry in /home/. In this directory, cPanel places files that creates the
environment of the jailed shell, as well as copies the user's files in
/home/virtfs/<user>/home/ in a directory of the username, essentially
emulating the real environment without the rest of the users.
The problem with this is cPanel is copying the files, so the user has
duplicate files, and quota usage doubles. What should happen instead is
cPanel moving to full virtfs support where /home/<user>/home/<user>/ becomes
the site root so virtfs files can be placed in /home/<user>/, or there
should be a symlink created to the user's files from
/home/virtfs/<user>/home/<user>/ pointing to /home/<user>/.
This is not only a problem with user quotas, but also with disk usage. A
server which has multiple large sites with jail shell access could consume
the entire hard drive fairly quickly.
Beau Steward
Systems Engineer



LinkBack URL
About LinkBacks
Reply With Quote




