From fb4f03cd3f7e5d53743e45489921e1de44aaa43d Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Mon, 25 Apr 2016 19:44:13 -0700 Subject: [PATCH] screen/README: add more details about enabling multiuser screen Also include instructions for creating the necessary override file in /etc/tmpfiles.d/ when screen is in multiuser mode on a system with both the screen and systemd packages active at the same time. Signed-off-by: Kyle J. McKay --- screen/README | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/screen/README b/screen/README index dc28603..070e10c 100644 --- a/screen/README +++ b/screen/README @@ -23,3 +23,19 @@ need to be run: sudo chmod u+s /usr/bin/screen sudo chmod g-w /var/run/screen + +In addition, on a deb pkg machine an override should be added like so: + + sudo dpkg-statoverride --add root utmp 6755 /usr/bin/screen + +Furthermore, if both the screen and systemd packages are active at the +same time then you will likely need to add a /etc/tmpfiles.d/screen-cleanup.conf +file to override the /usr/lib/tmpfiles.d/screen-cleanup.conf like so: + + # without this a u+s multiuser /usr/bin/screen will not run after a reboot + # (or package upgrade) when both the screen and systemd packages are active + sudo sh -c "sed -e 's/0775/0755/' /etc/tmpfiles.d/screen-cleanup.conf" + +Otherwise /var/run/screen will end up with the wrong permissions after the +next reboot (or package upgrade) and screen will refuse to run. -- 2.11.4.GIT