Red Hat Bugzilla – Bug 155969
rc.sysinit needs special code to remove screen directories
Last modified: 2014-03-16 22:53:30 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.0 (like Gecko)
Description of problem:
An error is displayed on boot because /var/run/screen/S-username is a
It seems that the code at about line 570 of rc.sysinit needs to be changed to
include a line such as the following:
*/screen) rm -rf $afile/* ;;
I believe that the desired functionality is to have the screen directories of
all users removed on boot. At boot time there is no valid data in the
directories or the sockets that they contain. There is no harm in removing
the user directories (subdirectories of /var/run/screen/) as they will
automatically be created when running screen. It is also desirable to remove
them as (AFAIK) there is no other way that such directories might be
automatically removed after an account has been deleted.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1) Run screen as regular user.
2) Reboot machine, preferrably with slow hardware.
3) Observe annoying error message about directory /var/run/screen/S-username.
When did we change the location of screen sockets? (again :) )
The change was made recently at my request.
Having screen sockets in /tmp/screen/S-user was a bad idea. The problem is
the case of a machine that had never been used for running screen (or which
has been freshly booted with tmpfs for /tmp or which has just had a tmpreaper
program run). On such a machine a hostile user may create their
own /tmp/screen directory which would allow them to perform a simple DOS
attack against other screen users at the minimum and potentially get access to
The new location is the same as Gentoo and Debian use and solves these
Historically we had it writing them in the home directory - what happened to
I don't know, I guess it disappeared before I started using Fedora for such
Having them in the home directory is a bad idea anyway. I'm sure that there
would be lots of interesting problems occurring when you have /home on an NFS
server and use the same account on several NFS clients to run screen...
Fixed in 8.09-1.