Blog

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

Tags: bash shellcPaneljailshellquotashell accounttermination of accountvirtfs

Published on: May 16, 2009 by George K.

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

Scenario:

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

Good luck!!!

Category : cPanel, Howtos, Snippets

George K.

George K.

George started his career in web hosting and Linux technical support in the year 2004 and is with SupportSages since 2009. He has keen interest in server optimizations, custom security solutions, hacked server recovery, cyber forensic and high availability fail over system design and implementation. George loves long drives and is passionate about art and literature.

You may also read:

Comments

Add new commentSIGN IN

Let's Connect

Get new updates

Categories

$0.000 items