VirtFS is used by cPanel and WHM to provide a jailed and shielded environment for all those users who connect to a server via SSH. This jailed shell functions as a container for all the users and does not permit them to access the home directories present on the server of other users.
The additional properties of VirtFS are as follows:
Centos6 and older support at most 256 jail shell users on systems that specifically use the apache mod_ruid2 module. The most significant warning to keep in mind while accessing the VirtFS is that make sure you do not make use of the rm command in order to remove any mounted file or directories within the /home / virtfs / directory.
When the user logs in to a jailed shell environment via SSH or SFTP for the very first time, the system automatically creates the /home/ virtfs / directory. This particular directory consists of the utilities, configuration files and the BIND mounts.
Few other things to keep in mind have been enlisted below:
Two options are available and provided by WHM for enabling the jailed shell environment. For enabling it for the new and modified users, it’s recommended to use the cPanel jail shell by default option present in the Tweak Settings interface of WHM. In order to enable it for a particular user, use the Manage Shell Access interface provided by WHM.