New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

All files of users home directory gone after activate shell access with jailkit

Started by bellafronte, January 12, 2020, 09:00:03 PM

Previous topic - Next topic

bellafronte

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  :'(

Netino

From Jailkit documentation:

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