When deleting virtfs/user, Can't operate anything by the error of ld-linux.so.X.

PondRicefied

Well-Known Member
Dec 13, 2004
52
0
156
Since a user's Jailshell stopped having used, I deleted the user's virtfs.
-----------------
% rm -rf /home/virtfs/username/*
rm: cannot remove directory `username/usr/libexec': Device or resource busy
rm: cannot remove directory `username/usr/lib': Device or resource busy
rm: cannot remove directory `username/lib': Device or resource busy
rm: cannot remove directory `username/home/username: Device or resource busy
-----------------

Then, whatever it might input from the command line of ssh, no operations became impossible by the following error.
-----------------
% ls
bash: /bin/ls: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
-----------------

I cannot access cpanel and whm by Internal Server Error, and since shell is also impossible, they cannot check a log, either.

I have lapsed into the condition of having been troubled very much.
Someone PLEASE teach how to solve.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
32
473
Go on, have a guess
You've basically deleted much of your operating system because the files within the /home/virtfs/ tree are symlinked to your live binaries and libraries. You're going to have to perform an OS restore on the server.
 

PondRicefied

Well-Known Member
Dec 13, 2004
52
0
156
Oh NO ...

I want to hear it for future reference.
When do not use Jailshell, please teach me how to delete Virtfs safely.

It is very painful to consume the capacity of no less than 800-2000MB per one user.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
32
473
Go on, have a guess
AFAIK, it's all symlinked to their account and so doesn't actually represent any space consumed. You should not delete anything in there manually.
 

PondRicefied

Well-Known Member
Dec 13, 2004
52
0
156
Thank you for reply.

I learned that I should not delete virtfs.