Hi all,
Many times you come accross the issue that "/home/virtfs/cpaneluser" consuming more space.
/home/virtfs/cpaneluser : This directory structure is created when user access jail shell. You can enable jail shell access to cpanel user using below WHM option.
WHM >> Manage Shell Access and disable Jailed Shell for users.
Note : Do not directly delete any files under this, because it is hard link to actual server directory structure and deleting this may caused issue to server.
When any capnel usr which have access to jail shell for his account login to shell and failed to properly logout from his session this issue occure.
because the bind (virtual) mount for his direcory are recreated and not properly realease.
To resolved this issue go through the below steps :
Step 1 : You can check un-realise mount point for that user using below command.
--------------------------
# cat /proc/mounts | grep cpaneluser
--------------------------
This shows mount point still remain for that user.
Step 2 : Kill the jailshell process related to that user.
--------------------------
# ps aufx |grep cpaneluser |grep jailshell
--------------------------
Note : Please take care that this user not actually using this SSH session.
Step 3 : Finally unmount all the files related to that user
--------------------------
# for i in `cat /proc/mounts |grep virtfs |grep cpaneluser |awk '{print$2}'`; do umount $i; done
--------------------------
Verify once that all mount point for that user are release using the command given in step 1.
Step 4 : If there is no any mount point you are free to delete those files.
--------------------------
# rm -rf /home/virtfs/cpaneluser
--------------------------
Note : Disable the Jail Shell access to that user if not needed.
Enjoy !!!!!!!!!!!!!
Many times you come accross the issue that "/home/virtfs/cpaneluser" consuming more space.
/home/virtfs/cpaneluser : This directory structure is created when user access jail shell. You can enable jail shell access to cpanel user using below WHM option.
WHM >> Manage Shell Access and disable Jailed Shell for users.
Note : Do not directly delete any files under this, because it is hard link to actual server directory structure and deleting this may caused issue to server.
When any capnel usr which have access to jail shell for his account login to shell and failed to properly logout from his session this issue occure.
because the bind (virtual) mount for his direcory are recreated and not properly realease.
To resolved this issue go through the below steps :
Step 1 : You can check un-realise mount point for that user using below command.
--------------------------
# cat /proc/mounts | grep cpaneluser
--------------------------
This shows mount point still remain for that user.
Step 2 : Kill the jailshell process related to that user.
--------------------------
# ps aufx |grep cpaneluser |grep jailshell
--------------------------
Note : Please take care that this user not actually using this SSH session.
Step 3 : Finally unmount all the files related to that user
--------------------------
# for i in `cat /proc/mounts |grep virtfs |grep cpaneluser |awk '{print$2}'`; do umount $i; done
--------------------------
Verify once that all mount point for that user are release using the command given in step 1.
Step 4 : If there is no any mount point you are free to delete those files.
--------------------------
# rm -rf /home/virtfs/cpaneluser
--------------------------
Note : Disable the Jail Shell access to that user if not needed.
Enjoy !!!!!!!!!!!!!
Comment