Bug 910246

Summary: Screen does not run at Fedora 18 as regular user
Product: [Fedora] Fedora Reporter: Pavel Alexeev <pahan>
Component: screenAssignee: Petr Hracek <phracek>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: lnykryn, phracek, yk+bug+rh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-02 21:16:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Alexeev 2013-02-12 07:09:38 UTC
Description of problem:
$ /usr/bin/screen
[screen is terminating]

$ strace /usr/bin/screen 2>&1 | tail
fcntl(0, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
umask(0)                                = 02
stat("/var/run/screen", {st_mode=S_IFDIR|0775, st_size=80, ...}) = 0
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faf5ccd2000
write(1, "Directory '/var/run/screen' must"..., 49Directory '/var/run/screen' must have mode 777.
) = 49                                                                                                                                       
exit_group(1)                           = ?                                                                                                  
+++ exited with 1 +++

$ /usr/bin/screen                                                                                    
Directory '/var/run/screen' must have mode 775.

$ getenforce
Disabled

It normally run under root.

Version-Release number of selected component (if applicable):
$ rpm -q screen
screen-4.1.0-0.12.20120314git3c2946.fc18.x86_64

How reproducible:
Always

Comment 1 Petr Hracek 2013-02-18 08:40:29 UTC
Please check whether binary file /usr/bin/screen has correct
access rights like (2755)

$ ls -la /usr/bin/screen 
-rwxr-sr-x. 1 root screen 426168 Mar 28  2012 /usr/bin/screen
$

You can check that over stat command

Comment 2 Pavel Alexeev 2013-04-02 21:16:02 UTC
Thank for the answer.
Unfortunately I have no access to that machine where it was experienced.

Comment 3 Yves Kondoszek 2013-09-29 12:58:12 UTC
I'm having the same issue on 3.11.1-200.fc19.x86_64. /usr/bin/screen was 0755, so I did
# chmod g+s /usr/bin/screen
and it complained about /var/run/screen not being 755, so I did
# chmod 775 /var/run/screen
and now I'm back to the "[screen is terminating]" point.

I can reproduce and get details, so please reopen.

Comment 4 Yves Kondoszek 2013-09-29 13:17:46 UTC
Nevermind. It turns out I had a line about /dev/pts in my /etc/fstab:

devpts   /dev/pts   devpts   defaults   0   0

It was overriding the one in /etc/mtab:

devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0

Removing it fixed the issue.