Package: screen Version: 4.0.3-13 Severity: minor Tags: patch Thanks for maintaining screen.
== My problem == Whenever I try to start screen, I get the error message "Directory '/var/run/screen' must have mode 777". /usr/bin/screen is owned by 0(root):43(utmp). But /var/run/screen is owned by 0(root):22(voice). I have no idea why. If I chmod 777 /var/run/screen, it fixes the problem. Alternatively, if I chown root:utmp /var/run/screen, it also fixes the problem. My /var/log/dpkg.log{,*gz} files are incomplete but they show that some of the screen versions I've ever used include 4.0.2.4-1, 4.0.3-0.2, 4.0.3-0.3+b1, 4.0.3-11, and 4.0.3-13. Bug http://bugs.debian.org/471763 describes a couple of different problems. My problem is very similar to Ambrose Li's and Stephen Kitt's. Mine is not very similar to Daniel Dickinson's. == Suggested fix == In message http://bugs.debian.org/471763#45 Daniel Hornung suggests that if you swap lines 25 and 26 of /etc/init.d/screen-cleanup, it will fix my problem. I have attached a patch which swaps those two lines. Why not apply it?
--- screen-cleanup 2009-06-21 04:04:05.000000000 +0000 +++ screen-cleanup.new 2009-06-21 04:04:37.000000000 +0000 @@ -22,8 +22,8 @@ if test -L $SCREENDIR || ! test -d $SCREENDIR; then rm -f $SCREENDIR mkdir $SCREENDIR - chown root:utmp $SCREENDIR fi + chown root:utmp $SCREENDIR find $SCREENDIR -type p -print0 | xargs -0r rm -f -- # If the local admin has used dpkg-statoverride to install the screen # binary with different set[ug]id bits, change the permissions of