View Issue Details

IDProjectCategoryView StatusLast Update
0007395CentOS-7screenpublic2014-07-18 16:38
ReporterMiKylie Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
OSCentOSOS Version7 
Product Version7.0-1406 
Summary0007395: Screen gives "screen is terminating" for regular users
DescriptionRelated to: http://bugs.centos.org/view.php?id=7377

It happens with the default kernel as well, here.
Steps To Reproduce[kotek@puma ~]$ uname -a
Linux puma 3.10.0-123.4.2.el7.x86_64 #1 SMP Mon Jun 30 16:09:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[kotek@puma ~]$ screen
[screen is terminating]
[kotek@puma ~]$ ls -la /var/run/screen/
total 0
drwxrwxr-x. 4 root screen 80 Jul 18 15:47 .
drwxr-xr-x. 20 root root 580 Jul 18 16:03 ..
drwx------. 2 kotek kotek 40 Jul 18 16:20 S-kotek
drwx------. 2 root root 40 Jul 18 15:53 S-root
[kotek@puma ~]$ ls -la /usr/bin/screen
-rwxr-sr-x. 1 root screen 475160 Jun 10 02:30 /usr/bin/screen
[kotek@puma ~]$
TagsNo tags attached.
abrt_hash
URL

Activities

user1999

2014-07-18 15:14

  ~0020462

Last edited: 2014-07-18 15:14

Can you elaborate, please? The message is displayed always when you exit the screen session. What is the actual problem that you face ?

MiKylie

MiKylie

2014-07-18 15:18

reporter   ~0020463

It is impossible to start a new screen session. And I mean that the [screen is terminating] shows up immediately after issuing the command "screen", not after terminating an existing screen session. I've added a "strace screen" here as well.

[kotek@puma ~]$ ps -ef|grep screen
kotek 10320 16987 0 17:15 pts/3 00:00:00 grep --color=auto screen
[kotek@puma ~]$ screen -ls
No Sockets found in /var/run/screen/S-kotek.

[kotek@puma ~]$ screen
[screen is terminating]
[kotek@puma ~]$
MiKylie

MiKylie

2014-07-18 15:19

reporter  

screen-strace (311,648 bytes)
JohnnyHughes

JohnnyHughes

2014-07-18 15:54

administrator   ~0020464

screen works fine for me here as a regular user.

Did you make that user an "Administrative User" on install. (I did not on my install .. no idea if it will impact anything, I just did not do it, so that might be a difference).
MiKylie

MiKylie

2014-07-18 15:57

reporter   ~0020465

Nope, it's a regular user with UID=GID=500. Added with "useradd" command. Not in any special groups as well.

[kotek@puma ~]$ id -a
uid=500(kotek) gid=500(kotek) groups=500(kotek) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
JohnnyHughes

JohnnyHughes

2014-07-18 16:09

administrator   ~0020466

I have tried everything I can think of (even su - <newuser>) and I can not reproduce this on CentOS-7.

Maybe an installed package list to see if we can duplicate the issue somehow.
MiKylie

MiKylie

2014-07-18 16:12

reporter  

puma.pkgs (9,951 bytes)
MiKylie

MiKylie

2014-07-18 16:16

reporter   ~0020467

I've attached the installed package list.

Also, those are the perms for /dev/pts
[root@puma ~]# ls -la /dev/pts
total 0
drwxr-xr-x. 2 root root 0 Jul 18 15:13 .
drwxr-xr-x. 19 root root 3060 Jul 18 17:11 ..
crw--w----. 1 kotek tty 136, 1 Jul 18 16:22 1
crw--w----. 1 kotek tty 136, 2 Jul 18 16:21 2
crw--w----. 1 kotek tty 136, 3 Jul 18 18:14 3
crw--w----. 1 kotek tty 136, 4 Jul 18 18:12 4
c---------. 1 root root 5, 2 Jul 18 15:13 ptmx

and it's mounted as
devpts on /dev/pts type devpts (rw,relatime,seclabel,mode=600,ptmxmode=000)

I wonder how does that compare to your situation. I'm kinda out of ideas what to test now. I hoped that the attached strace would clear something up.
toracat

toracat

2014-07-18 16:25

manager   ~0020468

This looks relevant:

https://bugzilla.redhat.com/show_bug.cgi?id=884673#c7
MiKylie

MiKylie

2014-07-18 16:38

reporter   ~0020469

Yes! Adding "gid=5" (and 5 is tty) fixes the issue. Thanks!

Apparently no need to change mode to 620 (at least now), that's what works:

devpts on /dev/pts type devpts (rw,relatime,seclabel,gid=5,mode=600,ptmxmode=000)

Issue History

Date Modified Username Field Change
2014-07-18 14:23 MiKylie New Issue
2014-07-18 15:14 user1999 Note Added: 0020462
2014-07-18 15:14 user1999 Note Edited: 0020462
2014-07-18 15:18 MiKylie Note Added: 0020463
2014-07-18 15:19 MiKylie File Added: screen-strace
2014-07-18 15:54 JohnnyHughes Note Added: 0020464
2014-07-18 15:57 MiKylie Note Added: 0020465
2014-07-18 16:09 JohnnyHughes Note Added: 0020466
2014-07-18 16:12 MiKylie File Added: puma.pkgs
2014-07-18 16:16 MiKylie Note Added: 0020467
2014-07-18 16:25 toracat Note Added: 0020468
2014-07-18 16:38 MiKylie Note Added: 0020469