Author Topic: All files of users home directory gone after activate shell access with jailkit  (Read 1851 times)

0 Members and 1 Guest are viewing this topic.

Hello folks,

I came across a very strange and dangerous situation that gave me a huge scare. I enabled shell access with jailkit for an account and after this, all files under /home/user are gone (literally all, lost disappears  :o ).

I do not believe in what happened and try to make the same to another user: files have gone too. Save by backup

I running the latest version of CWP 7 and CentOS 7, someone sees this happens? A lookup to logs or messages but I can't find anything  :'(

From Jailkit documentation:
Code: [Select]
Jailkit is a set of utilities to limit user accounts to specific files using chroot() and or specific commands.(...)

So, you did a chroot in your user's shell access..?!
If so, what the surprise..??
Chroot just exist to change the root of directories visible to that user.

But the files still exist there, in the same place, usually. But only visible to the root user.