remove a user: its /home/virtfs/<user> don't disappear

nzin

Registered
Jun 14, 2013
3
0
1
cPanel Access Level
Root Administrator
Hi,

I'm doing some tests.
I have create a user, let's call it "bob". And I disable shell access.
When I try to connect via ssh, I'm rejected. no problem
I can still connect via sftp. It is fine to me. At this point, it create a /home/virtfs/bob directory.

I now terminate the account.
It delete the user, the database, but not the /home/virtfs/bob directory. Why?

I use latest version: WHM 11.38.0 (build 18)


Thanks
 

xavnh

Registered
Jul 7, 2011
2
0
51
Hello,

We have the same problem. When we need to delete an account from Whmcs or cPanel WHM, the jailshell folder in virtfs is not deleted even after a reboot. It's really uncofortable when you manage multiple accounts. If you need to delete all this files manually, it's a nightmare.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
There are instructions under the "How to remove VirtFS" section in the document linked in my last response. It explains how to unmount a bind-mounted directory before deleting any files. Are you experiencing problems as a result of the virtfs directory that remains after an account is terminated?

Thank you.