jail/unjail users using bubblewrap

#1
I have some users in linux that I want to jail/unjail using bubblewrap. I read your guide "https://openlitespeed.org/kb/bubblewrap-in-openlitespeed/" to install bubblewrap. I installed it in ubuntu 18.04 as root using the below commands:
$ apt install pkg-config libcap-dev automake
$ git clone https://github.com/containers/bubblewrap.git
$ cd bubblewrap
$ git checkout v0.4.1
$ ./autogen.sh
$ make
$ make install

Now I want to jail a linux user named danny so that danny will have access to only certain directories and files.
I want to restrict danny using your bubblewrap.
I read about containers, namespaces, cgroups, etc but I did not get any proper commands to jail/unjail a user.
I also read the guide from where I installed it which is "https://github.com/containers/bubblewrap".
I have searched everywhere.
But I am not understanding what commands to run as I am new to this.
I just want the proper commands to jail-shell a user like DirectAdmin does.
Please help.
 
#2
With bubblewrap you don't generally jail a user, but an environment. As a web server, it's up to the application to define users and then you can use a virtual host to only do certain things for all who enter (bubblewrap can be a tool for that). Run with limited access to specific directories for example. Lots of good examples here: https://wiki.archlinux.org/title/Bubblewrap.
 
Top