From 0be06e391ddd012443ba6918047a719de61cb876 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Tue, 21 Jul 2020 12:17:05 -0700 Subject: [PATCH] screen/README: fine tune instructions Use explicit permisions rather than adding and removing bits to make sure that everything ends up working correctly. Signed-off-by: Kyle J. McKay --- screen/README | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/screen/README b/screen/README index 070e10c..7543411 100644 --- a/screen/README +++ b/screen/README @@ -21,12 +21,12 @@ location. Note that in order to make screen multiuser capable, these commands need to be run: - sudo chmod u+s /usr/bin/screen - sudo chmod g-w /var/run/screen + sudo chmod 4755 /usr/bin/screen + sudo chmod 0755 /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 + sudo dpkg-statoverride --add root utmp 4755 /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 @@ -34,7 +34,7 @@ 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 -- 2.11.4.GIT