Red Hat Bugzilla – Bug 828174
screen terminates immediately for non-privileged user
Last modified: 2012-06-04 08:53:40 EDT
Description of problem:
screen fails to start for non-root users after preupgrade from F16 to F17
Version-Release number of selected component (if applicable):
Steps to Reproduce:
screen terminates, printing "screen is terminating".
screen doesn't immediately terminate.
Running screen in e.g. gdb/strace reveals that it prints 'Directory '/var/run/screen' must have mode 777.'. If manually chmodded to 0777, it prints 'Directory '/var/run/screen' must have mode 775.'.
Turning SELinux off does not help. Being member of the screen group does not help. Root can run screen.
Also, when the error occurs _and_ SElinux is turned on, the following appears in audit.log:
type=ANOM_ABEND msg=audit(1338810943.409:195): auid=500 uid=500
pid=3554 comm="screen" reason="memory violation" sig=6
Can you please check that your binary has correct permissions?
[lnykryn@dhcp-27-188 ~]$ ls -alh /usr/bin/screen
-rwxr-sr-x. 1 root screen 429K 26. dub 12.23 /usr/bin/screen
Screen must have setgid to work correctly.
*** This bug has been marked as a duplicate of bug 813607 ***
Probably a false alarm...
A line in ~/.screenrc:
setenv TERMINFO /hom/<nonexistentusername>/.terminfo
caused the error.
(In reply to comment #1)
> Can you please check that your binary has correct permissions?
> [lnykryn@dhcp-27-188 ~]$ ls -alh /usr/bin/screen
> -rwxr-sr-x. 1 root screen 429K 26. dub 12.23 /usr/bin/screen
> Screen must have setgid to work correctly.
[14:52:57][hgb@prentice:~]1 ls -alh /usr/bin/screen
-rwxr-sr-x. 1 root screen 422K Mar 28 17:05 /usr/bin/screen