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

Home directory is stuck in read only. #11

Closed sequelwp closed 3 years ago

sequelwp commented 3 years ago

Hello,

I'm having a small issue where for a jailshell user, I cannot make their /home/USER directory writable.

control:~ $ touch 1
touch: cannot touch '1': Read-only file system

I've tried everything from using a bind (with rw flag) to adjusting the namespace config. The only thing that works is using uts in the config, but that gives access to far more than I wanted to.

Is there a way to make the home directory read / writable for this user?

KHIT93 commented 3 years ago

From what I have found, you need to define it like this:

bind /home/USER /home/USER rw,nodev,noexec,nosuid

That is at least what has worked for me