Virtfs dir for shell enabled user is not removed on termination of account or removal of shell

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

Good luck!!!

Continue Reading


 

About this blog

This blog, acts as a knowledge repository for the world and is unofficial! Anything we find interesting in the cyber world will go here. Most cases, this blog will reflect the happiness of our staff in reaching successful solution to an issue (s)he worked on. A reference for other fellow SAGEs who come across similar issues later