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
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
Thank for the answer. Unfortunately I have no access to that machine where it was experienced.
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.
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.