I have my computer start secure shell in a chroot system at boot. (All the normal directories are bind mounted in the chroot system /run, /dev, /dev/pts, /sys, /proc). After logging in to the chroot environment and trying to start screen
, I receive the error.
Directory '/run/screen' must have mode 775
So I set chmod 775 /run/screen
in my start scripts. Everything was working fine, but now I've run into a new problem. When I try to run screen
on my computer host system, I receive the error.
Directory '/run/screen' must have mode 777
Mode 777 is the default permission at boot. So the permissions screen requires for the host and chroot are different for some reason. How can I get screen
to run in both host and chroot environment?
Note: The host is Ubuntu Mate 18.04 LTS Bionic (graphical desktop), and the chroot is Debian 9 Stretch (headless personal server).