Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: bellafronte on January 12, 2020, 09:00:03 PM

Title: All files of users home directory gone after activate shell access with jailkit
Post by: bellafronte on January 12, 2020, 09:00:03 PM
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  :'(
Title: Re: All files of users home directory gone after activate shell access with jailkit
Post by: Netino on January 12, 2020, 09:59:26 PM
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.

Regards,
Netino