3

Firejail provides secure environment that strips /dev files with little number of exception. So when I try to run screen inside the environment, I get "Must be connected to a terminal". tty responds with "not a tty".

Is it possible to get proper tty in user space and pass it to screen?

3

There is a way to create user mode tty with the typescript utility. It looks like an overdo, but it works. So, the simple but probably not optimal solution is:

script -c "screen -R script" /dev/null

And it would be helpful to export appropriate TERM environment variable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.