Hi, can you show output of grep devpts /proc/mounts and ls -l /dev/pts
Amadeusz On Wed, 24 Jun 2015 20:31:57 +0000 "Kumar, Amit" <ahku...@mail.smu.edu> wrote: > Dear All, > > Any idea how can I troubleshoot this? > I straced this process and found the following: > > tracescrenn.11817:chown("/dev/pts/20", 0, 0) = -1 EPERM > (Operation not permitted) tracescrenn.11818:setpgid(0, > 11818) = -1 EPERM (Operation not permitted) > > Any thoughts on this? > Looking at the source of screen.c > ..... > ..... > if (ServerSocket != -1) > { > debug1("we unlink(%s)\n", SockPath); > #ifdef USE_SETEUID > xseteuid(real_uid); > xsetegid(real_gid); > #endif > (void) unlink(SockPath); > #ifdef USE_SETEUID > xseteuid(eff_uid); > xsetegid(eff_gid); > #endif > } > for (display = displays; display; display = display->d_next) > { > if (D_status) > RemoveStatus(); > FinitTerm(); > #ifdef UTMPOK > RestoreLoginSlot(); > #endif > AddStr("[screen is terminating]\r\n"); > Flush(3); > SetTTY(D_userfd, &D_OldMode); > fcntl(D_userfd, F_SETFL, 0); > freetty(); > Kill(D_userpid, SIG_BYE); > } > /* > * we _cannot_ call eexit(i) here, > * instead of playing with the Socket above. Sigh. > */ > exit(i); > ....... > ....... > ==== > It seems to be that either I am not able to open the socket for some > reason, which is surprising because I am a root user while I try > this. Other possibility is it has to do something with the display? > Any idea on what kind of display does screen reply on? > > Any help is greatly appreciated. > Thank you, > Amit > > > Dear Screen, > > [screen is terminating] for both Root and regular user ... > > Running into this strange problem on a handful of systems. It works > great on some of our other systems with the same version of OS etc.,. > I have googled enough with various suggestions and solutions to this > problem but none has worked for me. And I am ready to pull all hairs > out.... Hope I can find some peach with this oddity. > > RHEL6 OS > # screen -v > Screen version 4.00.03 (FAU) 23-Oct-06 > > I have made sure my fstab has this line: > devpts /dev/pts devpts > gid=5,mode=620 0 0 $ getent group 5 > tty:x:5: > > $ ls -ld /var/run/screen > drwxrwxr-x. 3 root screen 4096 Jun 8 11:20 /var/run/screen > $ getfacl /var/run/screen > getfacl: Removing leading '/' from absolute path names > # file: var/run/screen > # owner: root > # group: screen > user::rwx > group::rwx > other::r-x > > > $ ls -ld /usr/bin/screen > -rwxr-sr-x 1 root screen 387488 May 20 2011 /usr/bin/screen > $ getent group screen > screen:x:84: > > Any help here is greatly appreciated. > Thank you, > Amit >