hi, i am having some trouble in using screen. i connect to system A and then ssh to system B and run screen.
when i use screen, it launches it and when attempted to detach it terminates than detach (cntrl+1 cntrl+d). this happens only user who's id is got from nis server and home directory mounted over nfs. there are no file names like /var/run/screen/S-username/*pts* . i am not sure what is going on . would appreciate some help to figure this out. screen -> 4.0.2-4.1 ls -l /var/run/screen/ total 8 drwx------ 2 prod prod 4096 Apr 25 20:21 S-prod drwx------ 2 root root 4096 Apr 25 15:33 S-root [EMAIL PROTECTED] prod] ls -ld /var/run/screen/ drwxrwxr-x 4 root utmp 4096 Apr 25 17:25 /var/run/screen/ [EMAIL PROTECTED] prod] ls -l /usr/bin/sc scp screen screendump script scriptreplay [EMAIL PROTECTED] prod] ls -l /usr/bin/screen -rwxr-sr-x 1 root utmp 306616 Nov 14 2004 /usr/bin/screen [EMAIL PROTECTED] prod] ls -ld /var/run/screen/ drwxrwxr-x 4 root utmp 4096 Apr 25 17:25 /var/run/screen/ [EMAIL PROTECTED] prod] ls -l /var/run/screen/ total 8 drwx------ 2 prod prod 4096 Apr 25 20:21 S-prod drwx------ 2 root root 4096 Apr 25 15:33 S-root [EMAIL PROTECTED] prod] ls -ld /var/run/utmp -rw-rw-r-- 1 root utmp 6144 Apr 25 20:21 /var/run/utmp ----------------------- strace screen gives this. execve("/usr/bin/screen", ["screen"], [/* 632 vars */]) = 0 uname({sys="Linux", node="somenode", ...}) = 0 brk(0) = 0x809c000 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fbb000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fba000 open("./tls/i686/mmx/cmov/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./tls/i686/mmx/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./tls/i686/cmov/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./tls/i686/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./tls/mmx/cmov/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./tls/mmx/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./tls/cmov/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./tls/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./i686/mmx/cmov/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./i686/mmx/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./i686/cmov/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./i686/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./mmx/cmov/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./mmx/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./cmov/libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("./libncursesw.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) snipped. open("/lib/tls/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\32"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=9872, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e06000 old_mmap(NULL, 8632, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7e03000 old_mmap(0xb7e05000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0xb7e05000 close(3) = 0 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e06a40, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_ not_present:0, useable:1}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=32767, rlim_max=32767}) = 0 close(32766) = -1 EBADF (Bad file descriptor) close(32765) = -1 EBADF (Bad file descriptor) . . close(3) = -1 EBADF (Bad file descriptor) brk(0) = 0x809c000 brk(0x80bd000) = 0x80bd000 brk(0) = 0x80bd000 getuid32() = 500 getgid32() = 500 geteuid32() = 500 getegid32() = 500 rt_sigaction(SIGXFSZ, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0 access("/home/prod/.nethackrc", F_OK) = -1 ENOENT (No such file or directory) readlink("/proc/self/fd/0", 0xbf9b16fc, 511) = -1 EACCES (Permission denied) ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0 stat64("/dev/pts/", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0 open("/dev/pts/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3 fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 getdents64(3, /* 7 entries */, 1024) = 168 stat64("/dev/pts/3", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0 close(3) = 0 access("/var/run/utmpx", F_OK) = -1 ENOENT (No such file or directory) open("/var/run/utmp", O_RDWR) = -1 EACCES (Permission denied) open("/var/run/utmp", O_RDONLY) = 3 fcntl64(3, F_GETFD) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 _llseek(3, 0, [0], SEEK_SET) = 0 alarm(0) = 0 rt_sigaction(SIGALRM, {0xb7f0dbe0, [], 0}, {SIG_DFL}, 8) = 0 alarm(1) = 0 fcntl64(3, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0 read(3, "\10\0\0\0G\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\2\0\0\0\0\0\0\0~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\1\0\0\0002N\0\0~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\10\0\0\0\266\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\6\0\0\0_\4\0\0tty1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\6\0\0\0a\4\0\0tty2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\6\0\0\0b\4\0\0tty3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\6\0\0\0c\4\0\0tty4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\6\0\0\0e\4\0\0tty5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\6\0\0\0f\4\0\0tty6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\7\0\0\0\3243\0\0pts/0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\10\0\0\0\2$\0\0pts/1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\10\0\0\0\321%\0\0pts/2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\10\0\0\0\"-\0\0pts/3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 read(3, "\7\0\0\0\0234\0\0pts/3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384 fcntl64(3, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 alarm(0) = 1 rt_sigaction(SIGALRM, {SIG_DFL}, NULL, 8) = 0 close(3) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 3 connect(3, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = 0 writev(3, [{"\2\0\0\0\0\0\0\0\5\0\0\0", 12}, {"prod\0", 5}], 2) = 17 read(3, "\2\0\0\0\1\0\0\0\5\0\0\0#\0\0\0\364\1\0\0\364\1\0\0\5\0"..., 36) = 36 read(3, "prod\0$1$pnbzRUBn$/bXzir/GfQK0HTC"..., 66) = 66 close(3) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 readlink("/proc/self/fd/0", 0x809c5b0, 4095) = -1 EACCES (Permission denied) fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0 stat64("/dev/pts", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0 open("/dev/pts", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3 fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 getdents64(3, /* 7 entries */, 1024) = 168 stat64("/dev/pts/3", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0 close(3) = 0 stat64("/dev/pts/3", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0 geteuid32() = 500 getegid32() = 500 open("/dev/pts/3", O_RDWR|O_NONBLOCK) = 3 geteuid32() = 500 getegid32() = 500 close(3) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 umask(0) = 022 lstat64("/var/run/screen", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 fstat64(1, {st_mode=S_IFREG|0644, st_size=2439138, ...}) = 0 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e01000 write(1, "Directory \'/var/run/screen\' must"..., 49Directory '/var/run/screen' must have mode 777. ) = 49 munmap(0xb7e01000, 8192) = 0 exit_group(1) <prompt> __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]