View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007395 | CentOS-7 | screen | public | 2014-07-18 14:23 | 2014-07-18 16:38 |
Reporter | MiKylie | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
OS | CentOS | OS Version | 7 | ||
Product Version | 7.0-1406 | ||||
Summary | 0007395: Screen gives "screen is terminating" for regular users | ||||
Description | Related 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 ~]$ | ||||
Tags | No tags attached. | ||||
abrt_hash | |||||
URL | |||||
Can you elaborate, please? The message is displayed always when you exit the screen session. What is the actual problem that you face ? |
|
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 ~]$ |
|
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). |
|
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 |
|
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. |
|
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. |
|
This looks relevant: https://bugzilla.redhat.com/show_bug.cgi?id=884673#c7 |
|
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) |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2014-07-18 14:23 | MiKylie | New Issue | |
2014-07-18 15:14 |
|
Note Added: 0020462 | |
2014-07-18 15:14 |
|
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 |