pymumu / jail-shell

Jail-shell is a linux security tool mainly using chroot, namespaces technologies, limiting users to perform specific commands, and access sepcific directories.
GNU General Public License v2.0
110 stars 20 forks source link

file not found through root user #2

Closed kaustuva closed 4 years ago

kaustuva commented 4 years ago

hi

i can upload files into the home directory through jailed user. I can add/remove files/directories too. But i couldnt find same file/directory through system root user. I searched the uploaded file name across the file system but didnt find it through system root user. My idea is to link sftp user home directory to a mounted volume. please assist

Regards

pymumu commented 4 years ago

There is a description of the directories here. https://github.com/pymumu/jail-shell#file-directory-description

for your requirements, you can use the following configuration

bind /opt/upload/%u /opt/upload ro,nodev,noexec,nosuid

the /opt/upload directory in jail will be mapped to /opt/upload/[user]

for more, please read here: https://github.com/pymumu/jail-shell#jail-config-file-format-description

kaustuva commented 4 years ago

thank you @pymumu