Published on: May 16, 2009 by George K.
Since we are in the field of cPanel server administration, sometimes our clients have come up the issue in removing Virtfs dir for a jailshell enabled user is not removed on termination of account or removal of shell from his account. This often happens when you enable jailshell only and not normal bash shell. This issue has been there, since I started with hosting industry since 2005 and there is only advice which I want to provide you all.
DON”T EVER DELETE /home/virtfs/user DIRECTORY
Here is one solution which worked for me around 80% of time, which forces the unmount of virtfs of the user. Command is below,
cat /proc/mounts | grep virtfs | grep username |cut -d ' ' -f2 | xargs umount
Category : cPanel, Howtos, Snippets