netblue30 / firejail

Linux namespaces and seccomp-bpf sandbox
https://firejail.wordpress.com
GNU General Public License v2.0
5.84k stars 568 forks source link

screen: How to keep session alive after logout? #4301

Open bryn1u opened 3 years ago

bryn1u commented 3 years ago

Hey guys, First i would like to say thanks for you job, you do it great!

I have been starting using firejail for a while, i use it as a shell restriction for users and i have a question related with. After logout all processes were killed. Is there any way for example screen session to keep alive after user logout with possibility to get back after login ?

Thank you :)

rusty-snake commented 3 years ago

Maybe it works if you start screen like https://wiki.archlinux.org/title/GNU_Screen#Autostart_with_systemd and prepend /usr/bin/firejail --profile=screen --name=autoscreen. Then you can screen -x autoscreen or firejail --join=autoscreen screen -x autoscreen.