Hi! I don't know much about network programming, or about terminal handling. I wondered about why the command "scp file user at host:path" didn't work. It gave me the following error messages: "stdin: is not a tty" "Write failed flushing stdout buffer." "write stdout: Broken pipe" I tried it with different versions of ssh, first the newest debian packaged release (OpenSSH-1.2.3, protocol 1.5), then the current stable from openssh.org (openssh-2.9p1 with openssl-0.9.6a). But under Linux 2.4.3 they both didn't work. Then I found a machine with 2.2.14 kernel running and tested scp there. It worked. So I gave it a try with OpenSSH-1.2.3 on a 2.2.17 kernel machine. It worked, too. Now I found the problem. I had a "finger" in my bash startup script. that confused scp. I removed it, and ... it worked. With 2.4.3. Now I think there is a bug in scp, because it tries to open a pipe but expects a tty (a friend told me that based on an strace -f output) I'll send you the strace call, too. The many lines at the end "read(8, " ", 1)" come from the finger output. If you have questions about my system configuration or some commands I used, feel free to mail me to "acolomb at web.de". thank you for your support... -- Greetings... From: Andre Colomb <acolomb at web.de> known as MinioN -------------- next part -------------- 566 execve("/usr/bin/scp", ["scp", "Blink 182 -why.mp3", "acolomb at ledge:/tmp"], [/* 23 vars */]) = 0 566 brk(0) = 0x804d4a0 566 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) 566 open("/etc/ld.so.cache", O_RDONLY) = 4 566 fstat(4, {st_mode=S_IFREG|0644, st_size=23853, ...}) = 0 566 old_mmap(NULL, 23853, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40014000 566 close(4) = 0 566 open("/lib/libdl.so.2", O_RDONLY) = 4 566 fstat(4, {st_mode=S_IFREG|0644, st_size=9452, ...}) = 0 566 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\330\34"..., 4096) = 4096 566 old_mmap(NULL, 12428, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4001a000 566 mprotect(0x4001c000, 4236, PROT_NONE) = 0 566 old_mmap(0x4001c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x1000) = 0x4001c000 566 close(4) = 0 566 open("/lib/libnsl.so.1", O_RDONLY) = 4 566 fstat(4, {st_mode=S_IFREG|0644, st_size=76032, ...}) = 0 566 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0@\0\000"..., 4096) = 4096 566 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001e000 566 old_mmap(NULL, 88200, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4001f000 566 mprotect(0x40031000, 14472, PROT_NONE) = 0 566 old_mmap(0x40031000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x11000) = 0x40031000 566 old_mmap(0x40033000, 6280, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40033000 566 close(4) = 0 566 open("/usr/lib/libz.so.1", O_RDONLY) = 4 566 fstat(4, {st_mode=S_IFREG|0644, st_size=54512, ...}) = 0 566 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\31\0\000"..., 4096) = 4096 566 old_mmap(NULL, 57564, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40035000 566 mprotect(0x40041000, 8412, PROT_NONE) = 0 566 old_mmap(0x40041000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xb000) = 0x40041000 566 close(4) = 0 566 open("/lib/libutil.so.1", O_RDONLY) = 4 566 fstat(4, {st_mode=S_IFREG|0644, st_size=7652, ...}) = 0 566 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\17\0"..., 4096) = 4096 566 old_mmap(NULL, 10556, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40044000 566 mprotect(0x40046000, 2364, PROT_NONE) = 0 566 old_mmap(0x40046000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x1000) = 0x40046000 566 close(4) = 0 566 open("/lib/libpam.so.0", O_RDONLY) = 4 566 fstat(4, {st_mode=S_IFREG|0644, st_size=27180, ...}) = 0 566 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\22\0\000"..., 4096) = 4096 566 old_mmap(NULL, 30444, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40047000 566 mprotect(0x4004e000, 1772, PROT_NONE) = 0 566 old_mmap(0x4004e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x6000) = 0x4004e000 566 close(4) = 0 566 open("/usr/lib/libcrypto.so.0", O_RDONLY) = 4 566 fstat(4, {st_mode=S_IFREG|0644, st_size=685228, ...}) = 0 566 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\357"..., 4096) = 4096 566 old_mmap(NULL, 695940, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4004f000 566 mprotect(0x400eb000, 56964, PROT_NONE) = 0 566 old_mmap(0x400eb000, 53248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x9b000) = 0x400eb000 566 old_mmap(0x400f8000, 3716, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400f8000 566 close(4) = 0 566 open("/lib/libwrap.so.0", O_RDONLY) = 4 566 fstat(4, {st_mode=S_IFREG|0644, st_size=23008, ...}) = 0 566 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\36\0\000"..., 4096) = 4096 566 old_mmap(NULL, 27972, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x400f9000 566 mprotect(0x400fe000, 7492, PROT_NONE) = 0 566 old_mmap(0x400fe000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x4000) = 0x400fe000 566 close(4) = 0 566 open("/lib/libc.so.6", O_RDONLY) = 4 566 fstat(4, {st_mode=S_IFREG|0755, st_size=887712, ...}) = 0 566 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\244\213"..., 4096) = 4096 566 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40100000 566 old_mmap(NULL, 902044, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40101000 566 mprotect(0x401d6000, 29596, PROT_NONE) = 0 566 old_mmap(0x401d6000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xd4000) = 0x401d6000 566 old_mmap(0x401da000, 13212, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401da000 566 close(4) = 0 566 open("/lib/libcrypt.so.1", O_RDONLY) = 4 566 fstat(4, {st_mode=S_IFREG|0644, st_size=20436, ...}) = 0 566 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\16"..., 4096) = 4096 566 old_mmap(NULL, 183228, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x401de000 566 mprotect(0x401e3000, 162748, PROT_NONE) = 0 566 old_mmap(0x401e3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x4000) = 0x401e3000 566 old_mmap(0x401e4000, 158652, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401e4000 566 close(4) = 0 566 munmap(0x40014000, 23853) = 0 566 getpid() = 566 566 getuid() = 1000 566 brk(0) = 0x804d4a0 566 brk(0x804d8b8) = 0x804d8b8 566 brk(0x804e000) = 0x804e000 566 socket(PF_UNIX, SOCK_STREAM, 0) = 4 566 connect(4, {sin_family=AF_UNIX, path=" /var/run/.nscd_socket"}, 110) = -1 ECONNREFUSED (Connection refused) 566 close(4) = 0 566 open("/etc/nsswitch.conf", O_RDONLY) = 4 566 fstat(4, {st_mode=S_IFREG|0644, st_size=465, ...}) = 0 566 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 566 read(4, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 465 566 read(4, "", 4096) = 0 566 close(4) = 0 566 munmap(0x40014000, 4096) = 0 566 open("/etc/ld.so.cache", O_RDONLY) = 4 566 fstat(4, {st_mode=S_IFREG|0644, st_size=23853, ...}) = 0 566 old_mmap(NULL, 23853, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40014000 566 close(4) = 0 566 open("/lib/libnss_compat.so.2", O_RDONLY) = 4 566 fstat(4, {st_mode=S_IFREG|0644, st_size=41356, ...}) = 0 566 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\31\0"..., 4096) = 4096 566 old_mmap(NULL, 44332, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4020b000 566 mprotect(0x40215000, 3372, PROT_NONE) = 0 566 old_mmap(0x40215000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x9000) = 0x40215000 566 close(4) = 0 566 brk(0x804f000) = 0x804f000 566 munmap(0x40014000, 23853) = 0 566 uname({sys="Linux", node="ledge", ...}) = 0 566 open("/etc/passwd", O_RDONLY) = 4 566 fcntl(4, F_GETFD) = 0 566 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 566 fstat(4, {st_mode=S_IFREG|0644, st_size=1400, ...}) = 0 566 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 566 _llseek(4, 0, [0], SEEK_CUR) = 0 566 read(4, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1400 566 close(4) = 0 566 munmap(0x40014000, 4096) = 0 566 ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0 566 rt_sigaction(SIGPIPE, {0x804b070, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 566 pipe([4, 5]) = 0 566 pipe([6, 7]) = 0 566 pipe([8, 9]) = 0 566 close(4) = 0 566 close(5) = 0 566 fork() = 567 566 close(6) = 0 566 close(9) = 0 566 read(8, <unfinished ...> 567 close(7) = 0 567 close(8) = 0 567 dup2(6, 0) = 0 567 dup2(9, 1) = 1 567 close(6) = 0 567 close(9) = 0 567 execve("/usr/bin/ssh", ["/usr/bin/ssh", "-x", "-oFallBackToRsh no", "-oFallBackToRsh no", "-l", "acolomb", "ledge", "scp -t /tmp"], [/* 23 vars */]) = 0 567 brk(0) = 0x80661ec 567 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) 567 open("/etc/ld.so.cache", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=23853, ...}) = 0 567 old_mmap(NULL, 23853, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40014000 567 close(4) = 0 567 open("/lib/libdl.so.2", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=9452, ...}) = 0 567 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\330\34"..., 4096) = 4096 567 old_mmap(NULL, 12428, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4001a000 567 mprotect(0x4001c000, 4236, PROT_NONE) = 0 567 old_mmap(0x4001c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x1000) = 0x4001c000 567 close(4) = 0 567 open("/lib/libnsl.so.1", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=76032, ...}) = 0 567 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0@\0\000"..., 4096) = 4096 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001e000 567 old_mmap(NULL, 88200, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4001f000 567 mprotect(0x40031000, 14472, PROT_NONE) = 0 567 old_mmap(0x40031000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x11000) = 0x40031000 567 old_mmap(0x40033000, 6280, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40033000 567 close(4) = 0 567 open("/usr/lib/libz.so.1", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=54512, ...}) = 0 567 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\31\0\000"..., 4096) = 4096 567 old_mmap(NULL, 57564, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40035000 567 mprotect(0x40041000, 8412, PROT_NONE) = 0 567 old_mmap(0x40041000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xb000) = 0x40041000 567 close(4) = 0 567 open("/lib/libutil.so.1", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=7652, ...}) = 0 567 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\17\0"..., 4096) = 4096 567 old_mmap(NULL, 10556, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40044000 567 mprotect(0x40046000, 2364, PROT_NONE) = 0 567 old_mmap(0x40046000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x1000) = 0x40046000 567 close(4) = 0 567 open("/lib/libpam.so.0", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=27180, ...}) = 0 567 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\22\0\000"..., 4096) = 4096 567 old_mmap(NULL, 30444, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40047000 567 mprotect(0x4004e000, 1772, PROT_NONE) = 0 567 old_mmap(0x4004e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x6000) = 0x4004e000 567 close(4) = 0 567 open("/usr/lib/libcrypto.so.0", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=685228, ...}) = 0 567 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\357"..., 4096) = 4096 567 old_mmap(NULL, 695940, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4004f000 567 mprotect(0x400eb000, 56964, PROT_NONE) = 0 567 old_mmap(0x400eb000, 53248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x9b000) = 0x400eb000 567 old_mmap(0x400f8000, 3716, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400f8000 567 close(4) = 0 567 open("/lib/libwrap.so.0", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=23008, ...}) = 0 567 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\36\0\000"..., 4096) = 4096 567 old_mmap(NULL, 27972, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x400f9000 567 mprotect(0x400fe000, 7492, PROT_NONE) = 0 567 old_mmap(0x400fe000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x4000) = 0x400fe000 567 close(4) = 0 567 open("/lib/libc.so.6", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0755, st_size=887712, ...}) = 0 567 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\244\213"..., 4096) = 4096 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40100000 567 old_mmap(NULL, 902044, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40101000 567 mprotect(0x401d6000, 29596, PROT_NONE) = 0 567 old_mmap(0x401d6000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xd4000) = 0x401d6000 567 old_mmap(0x401da000, 13212, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401da000 567 close(4) = 0 567 open("/lib/libcrypt.so.1", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=20436, ...}) = 0 567 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\16"..., 4096) = 4096 567 old_mmap(NULL, 183228, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x401de000 567 mprotect(0x401e3000, 162748, PROT_NONE) = 0 567 old_mmap(0x401e3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x4000) = 0x401e3000 567 old_mmap(0x401e4000, 158652, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401e4000 567 close(4) = 0 567 munmap(0x40014000, 23853) = 0 567 getpid() = 567 567 getuid() = 1000 567 geteuid() = 1000 567 geteuid() = 1000 567 setresuid(ruid 4294967295, euid 1000, suid 4294967295) = 0 567 umask(022) = 037 567 open("/dev/urandom", O_RDONLY) = 4 567 read(4, "R/\262\6=\253\344\273PR\23\346\232\302s\263\21\336\214"..., 64) = 64 567 close(4) = 0 567 brk(0) = 0x80661ec 567 brk(0x806630c) = 0x806630c 567 brk(0x8067000) = 0x8067000 567 time([991258215]) = 991258215 567 getpid() = 567 567 getuid() = 1000 567 time(NULL) = 991258215 567 open("/dev/urandom", O_RDONLY) = 4 567 read(4, "\262\'5\247T\363\265\312\214\30\\\217\365e%\313\367\365"..., 32) = 32 567 close(4) = 0 567 time([991258215]) = 991258215 567 time([991258215]) = 991258215 567 time([991258215]) = 991258215 567 time([991258215]) = 991258215 567 time([991258215]) = 991258215 567 time([991258215]) = 991258215 567 time([991258215]) = 991258215 567 time([991258215]) = 991258215 567 time([991258215]) = 991258215 567 time([991258215]) = 991258215 567 time([991258215]) = 991258215 567 brk(0x8069000) = 0x8069000 567 ioctl(0, TCGETS, 0xbffff348) = -1 EINVAL (Invalid argument) 567 socket(PF_UNIX, SOCK_STREAM, 0) = 4 567 connect(4, {sin_family=AF_UNIX, path=" /var/run/.nscd_socket"}, 110) = -1 ECONNREFUSED (Connection refused) 567 close(4) = 0 567 open("/etc/nsswitch.conf", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=465, ...}) = 0 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 567 read(4, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 465 567 read(4, "", 4096) = 0 567 close(4) = 0 567 munmap(0x40014000, 4096) = 0 567 open("/etc/ld.so.cache", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=23853, ...}) = 0 567 old_mmap(NULL, 23853, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40014000 567 close(4) = 0 567 open("/lib/libnss_compat.so.2", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=41356, ...}) = 0 567 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\31\0"..., 4096) = 4096 567 old_mmap(NULL, 44332, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4020b000 567 mprotect(0x40215000, 3372, PROT_NONE) = 0 567 old_mmap(0x40215000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x9000) = 0x40215000 567 close(4) = 0 567 munmap(0x40014000, 23853) = 0 567 uname({sys="Linux", node="ledge", ...}) = 0 567 open("/etc/passwd", O_RDONLY) = 4 567 fcntl(4, F_GETFD) = 0 567 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 567 fstat(4, {st_mode=S_IFREG|0644, st_size=1400, ...}) = 0 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 567 _llseek(4, 0, [0], SEEK_CUR) = 0 567 read(4, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1400 567 close(4) = 0 567 munmap(0x40014000, 4096) = 0 567 open("/home/nfs/acolomb/.ssh/config", O_RDONLY) = -1 ENOENT (No such file or directory) 567 open("/etc/ssh/ssh_config", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=1412, ...}) = 0 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 567 read(4, "# This is ssh client systemwide "..., 4096) = 1412 567 read(4, "", 4096) = 0 567 close(4) = 0 567 munmap(0x40014000, 4096) = 0 567 gettimeofday({991258215, 512587}, NULL) = 0 567 getpid() = 567 567 open("/etc/resolv.conf", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=43, ...}) = 0 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 567 read(4, "nameserver 192.168.0.2\nsearch dn"..., 4096) = 43 567 read(4, "", 4096) = 0 567 close(4) = 0 567 munmap(0x40014000, 4096) = 0 567 socket(PF_UNIX, SOCK_STREAM, 0) = 4 567 connect(4, {sin_family=AF_UNIX, path=" /var/run/.nscd_socket"}, 110) = -1 ECONNREFUSED (Connection refused) 567 close(4) = 0 567 open("/etc/ld.so.cache", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=23853, ...}) = 0 567 old_mmap(NULL, 23853, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40014000 567 close(4) = 0 567 open("/lib/libnss_files.so.2", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=31084, ...}) = 0 567 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@ \0\000"..., 4096) = 4096 567 old_mmap(NULL, 34384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40216000 567 mprotect(0x4021e000, 1616, PROT_NONE) = 0 567 old_mmap(0x4021e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x7000) = 0x4021e000 567 close(4) = 0 567 munmap(0x40014000, 23853) = 0 567 open("/etc/hosts", O_RDONLY) = 4 567 fcntl(4, F_GETFD) = 0 567 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 567 fstat(4, {st_mode=S_IFREG|0644, st_size=26, ...}) = 0 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 567 read(4, "127.0.0.1\tlocalhost\tledge\n", 4096) = 26 567 close(4) = 0 567 munmap(0x40014000, 4096) = 0 567 socket(PF_UNIX, SOCK_STREAM, 0) = 4 567 connect(4, {sin_family=AF_UNIX, path=" /var/run/.nscd_socket"}, 110) = -1 ECONNREFUSED (Connection refused) 567 close(4) = 0 567 open("/etc/host.conf", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=26, ...}) = 0 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 567 read(4, "order hosts,bind\nmulti on\n", 4096) = 26 567 read(4, "", 4096) = 0 567 close(4) = 0 567 munmap(0x40014000, 4096) = 0 567 open("/etc/hosts", O_RDONLY) = 4 567 fcntl(4, F_GETFD) = 0 567 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 567 fstat(4, {st_mode=S_IFREG|0644, st_size=26, ...}) = 0 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 567 read(4, "127.0.0.1\tlocalhost\tledge\n", 4096) = 26 567 close(4) = 0 567 munmap(0x40014000, 4096) = 0 567 setresuid(ruid 4294967295, euid 1000, suid 4294967295) = 0 567 geteuid() = 1000 567 getuid() = 1000 567 open("/etc/ld.so.cache", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=23853, ...}) = 0 567 old_mmap(NULL, 23853, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40014000 567 close(4) = 0 567 open("/lib/libnss_db.so.2", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=19608, ...}) = 0 567 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\26"..., 4096) = 4096 567 old_mmap(NULL, 22836, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4021f000 567 mprotect(0x40224000, 2356, PROT_NONE) = 0 567 old_mmap(0x40224000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x4000) = 0x40224000 567 close(4) = 0 567 open("/lib/libdb.so.3", O_RDONLY) = 4 567 fstat(4, {st_mode=S_IFREG|0644, st_size=237944, ...}) = 0 567 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340A\0"..., 4096) = 4096 567 old_mmap(NULL, 240864, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40225000 567 mprotect(0x4025f000, 3296, PROT_NONE) = 0 567 old_mmap(0x4025f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x39000) = 0x4025f000 567 close(4) = 0 567 munmap(0x40014000, 23853) = 0 567 open("/var/lib/misc/services.db", O_RDONLY) = -1 ENOENT (No such file or directory) 567 open("/etc/services", O_RDONLY) = 4 567 fcntl(4, F_GETFD) = 0 567 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 567 fstat(4, {st_mode=S_IFREG|0644, st_size=14450, ...}) = 0 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 567 read(4, "# /etc/services:\n# $Id: services"..., 4096) = 4096 567 close(4) = 0 567 munmap(0x40014000, 4096) = 0 567 socket(PF_UNIX, SOCK_STREAM, 0) = 4 567 connect(4, {sin_family=AF_UNIX, path=" /var/run/.nscd_socket"}, 110) = -1 ECONNREFUSED (Connection refused) 567 close(4) = 0 567 open("/etc/hosts", O_RDONLY) = 4 567 fcntl(4, F_GETFD) = 0 567 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 567 fstat(4, {st_mode=S_IFREG|0644, st_size=26, ...}) = 0 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 567 read(4, "127.0.0.1\tlocalhost\tledge\n", 4096) = 26 567 close(4) = 0 567 munmap(0x40014000, 4096) = 0 567 geteuid() = 1000 567 setresuid(ruid 4294967295, euid 1000, suid 4294967295) = 0 567 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4 567 setresuid(ruid 4294967295, euid 1000, suid 4294967295) = 0 567 geteuid() = 1000 567 setresuid(ruid 4294967295, euid 1000, suid 4294967295) = 0 567 connect(4, {sin_family=AF_INET, sin_port=htons(22), sin_addr=inet_addr("127.0.0.1")}}, 16) = 0 567 setresuid(ruid 4294967295, euid 1000, suid 4294967295) = 0 567 setsockopt(4, SOL_SOCKET, SO_LINGER, [1], 8) = 0 567 brk(0x806b000) = 0x806b000 567 brk(0x806d000) = 0x806d000 567 open("/etc/ssh/ssh_host_key", O_RDONLY) = -1 EACCES (Permission denied) 567 setuid(1000) = 0 567 stat("/home/nfs/acolomb/.ssh", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 567 open("/etc/passwd", O_RDONLY) = 5 567 fcntl(5, F_GETFD) = 0 567 fcntl(5, F_SETFD, FD_CLOEXEC) = 0 567 fstat(5, {st_mode=S_IFREG|0644, st_size=1400, ...}) = 0 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 567 _llseek(5, 0, [0], SEEK_CUR) = 0 567 read(5, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1400 567 close(5) = 0 567 munmap(0x40014000, 4096) = 0 567 open("/etc/passwd", O_RDONLY) = 5 567 fcntl(5, F_GETFD) = 0 567 fcntl(5, F_SETFD, FD_CLOEXEC) = 0 567 fstat(5, {st_mode=S_IFREG|0644, st_size=1400, ...}) = 0 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 567 _llseek(5, 0, [0], SEEK_CUR) = 0 567 read(5, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1400 567 close(5) = 0 567 munmap(0x40014000, 4096) = 0 567 read(4, "S", 1) = 1 567 read(4, "S", 1) = 1 567 read(4, "H", 1) = 1 567 read(4, "-", 1) = 1 567 read(4, "1", 1) = 1 567 read(4, ".", 1) = 1 567 read(4, "5", 1) = 1 567 read(4, "-", 1) = 1 567 read(4, "O", 1) = 1 567 read(4, "p", 1) = 1 567 read(4, "e", 1) = 1 567 read(4, "n", 1) = 1 567 read(4, "S", 1) = 1 567 read(4, "S", 1) = 1 567 read(4, "H", 1) = 1 567 read(4, "-", 1) = 1 567 read(4, "1", 1) = 1 567 read(4, ".", 1) = 1 567 read(4, "2", 1) = 1 567 read(4, ".", 1) = 1 567 read(4, "3", 1) = 1 567 read(4, "\n", 1) = 1 567 write(4, "SSH-1.5-OpenSSH-1.2.3\n", 22) = 22 567 fcntl(4, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 567 select(5, [4], NULL, NULL, NULL) = 1 (in [4]) 567 read(4, "\0\0\1\v\0\0\0\0\0\2/!\264\276{\3\266\212\0\0\3\0\0\6#"..., 8192) = 276 567 brk(0x806e000) = 0x806e000 567 open("/dev/urandom", O_RDONLY) = 5 567 read(5, "\310T\324\265ur\201\243\245\332Mv#\34Y\312\337>\246\317"..., 32) = 32 567 close(5) = 0 567 brk(0x806f000) = 0x806f000 567 write(4, "\0\0\0\224\0\0\0\0\3\3/!\264\276{\3\266\212\3\3763\177"..., 156) = 156 567 select(5, [4], NULL, NULL, NULL) = 1 (in [4]) 567 read(4, "\0\0\0\5\341\327\244]\v-\353\32", 8192) = 12 567 brk(0x8072000) = 0x8072000 567 open("/etc/passwd", O_RDONLY) = 5 567 fcntl(5, F_GETFD) = 0 567 fcntl(5, F_SETFD, FD_CLOEXEC) = 0 567 fstat(5, {st_mode=S_IFREG|0644, st_size=1400, ...}) = 0 567 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 567 _llseek(5, 0, [0], SEEK_CUR) = 0 567 read(5, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1400 567 close(5) = 0 567 munmap(0x40014000, 4096) = 0 567 write(4, "\0\0\0\20\316\240\323E\33C}_U\17\371Mw\246\t\362\362\247"..., 28) = 28 567 select(5, [4], NULL, NULL, NULL) = 1 (in [4]) 567 read(4, "\0\0\0\5\237\244\277\4\r4\221\373", 8192) = 12 567 open("/home/nfs/acolomb/.ssh/identity", O_RDONLY) = -1 ENOENT (No such file or directory) 567 open("/dev/tty", O_RDWR) = 5 567 rt_sigprocmask(SIG_BLOCK, [TSTP], [], 8) = 0 567 rt_sigaction(SIGINT, {0x80576a0, [], 0x4000000}, {SIG_DFL}, 8) = 0 567 ioctl(5, TCGETS, {B38400 opost isig icanon echo ...}) = 0 567 ioctl(5, SNDCTL_TMR_START, {B38400 opost isig icanon -echo ...}) = 0 567 ioctl(5, TCGETS, {B38400 opost isig icanon -echo ...}) = 0 567 write(5, "acolomb at localhost\'s password: ", 30) = 30 567 read(5, "b", 1) = 1 567 read(5, "o", 1) = 1 567 read(5, "n", 1) = 1 567 read(5, "(", 1) = 1 567 read(5, "3", 1) = 1 567 read(5, "B", 1) = 1 567 read(5, "r", 1) = 1 567 read(5, "e", 1) = 1 567 read(5, "a", 1) = 1 567 read(5, "k", 1) = 1 567 read(5, "e", 1) = 1 567 read(5, "r", 1) = 1 567 read(5, "\n", 1) = 1 567 write(5, "\n", 1) = 1 567 ioctl(5, SNDCTL_TMR_START, {B38400 opost isig icanon echo ...}) = 0 567 ioctl(5, TCGETS, {B38400 opost isig icanon echo ...}) = 0 567 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 567 rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0 567 close(5) = 0 567 write(4, "\0\0\0\25\207\354j\277\370\271\262\33\335(e\266\273\216"..., 28) = 28 567 select(5, [4], NULL, NULL, NULL) = 1 (in [4]) 567 read(4, "\0\0\0\5\0275\246\26B\351\240\234", 8192) = 12 567 setsockopt(4, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 567 getsockname(4, {sin_family=AF_INET, sin_port=htons(1041), sin_addr=inet_addr("127.0.0.1")}}, [16]) = 0 567 setsockopt(4, SOL_IP, IP_TOS, [8], 4) = 0 567 write(4, "\0\0\0\24,\241\270\177\300\324\355\27\327\315\3154\16\275"..., 28) = 28 567 gettimeofday({991258220, 187861}, NULL) = 0 567 brk(0x8074000) = 0x8074000 567 rt_sigaction(SIGINT, {0x804f1c8, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 567 rt_sigaction(SIGQUIT, {0x804f1c8, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 567 rt_sigaction(SIGTERM, {0x804f1c8, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 567 rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0 567 fcntl(0, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 567 read(0, 0xbffff22b, 1) = -1 EAGAIN (Resource temporarily unavailable) 567 fcntl(0, F_SETFL, O_RDONLY) = 0 567 select(5, [0 4], [], NULL, NULL) = 1 (in [4]) 567 read(4, "\0\0\0\35\376\17\5\2766\325\211\27\251\233>\211\0252\35"..., 8192) = 36 567 select(5, [0 4], [2], NULL, NULL) = 1 (out [2]) 567 write(2, "stdin: is not a tty\n", 20) = 20 567 select(5, [0 4], [], NULL, NULL) = 1 (in [4]) 567 read(4, "\0\0\0016c\333\366\10\1R\256\10\272\367\302e\222\274\311"..., 8192) = 316 567 select(5, [0 4], [1], NULL, NULL) = 1 (out [1]) 567 write(1, "Login Name Tty "..., 301) = 301 566 <... read resumed> "L", 1) = 1 566 read(8, "o", 1) = 1 566 read(8, "g", 1) = 1 566 read(8, "i", 1) = 1 566 read(8, "n", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, "N", 1) = 1 566 read(8, "a", 1) = 1 566 read(8, "m", 1) = 1 566 read(8, "e", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, "T", 1) = 1 566 read(8, "t", 1) = 1 566 read(8, "y", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, "I", 1) = 1 566 read(8, "d", 1) = 1 566 read(8, "l", 1) = 1 566 read(8, "e", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, "L", 1) = 1 566 read(8, "o", 1) = 1 566 read(8, "g", 1) = 1 566 read(8, "i", 1) = 1 566 read(8, "n", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, "T", 1) = 1 566 read(8, "i", 1) = 1 566 read(8, "m", 1) = 1 566 read(8, "e", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, "O", 1) = 1 566 read(8, "f", 1) = 1 566 read(8, "f", 1) = 1 566 read(8, "i", 1) = 1 566 read(8, "c", 1) = 1 566 read(8, "e", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, "O", 1) = 1 566 read(8, "f", 1) = 1 566 read(8, "f", 1) = 1 566 read(8, "i", 1) = 1 566 read(8, "c", 1) = 1 566 read(8, "e", 1) = 1 566 read(8, " ", 1) = 1 566 read(8, "P", 1) = 1 566 read(8, "h", 1) = 1 566 read(8, "o", 1) = 1 566 read(8, "n", 1) = 1 566 read(8, "e", 1) = 1 566 read(8, "\n", 1) = 1 566 write(2, "Login Name Tty "..., 77) = 77 566 _exit(1) = ? 567 select(5, [0 4], [], NULL, NULL) = 1 (in [0]) 567 read(0, "", 8192) = 0 567 select(5, [4], [4], NULL, NULL) = 1 (out [4]) 567 write(4, "\0\0\0\5b\311R$\332K[9", 12) = 12 567 select(5, [4], [], NULL, NULL) = 1 (in [4]) 567 read(4, "\0\0\0\n\216\177\16\252\305\31\213y\373,[\2\10T\17t", 8192) = 20 567 select(5, [4], [1], NULL, NULL) = 1 (out [1]) 567 write(1, "\0", 1) = -1 EPIPE (Broken pipe) 567 --- SIGPIPE (Broken pipe) --- 567 write(1, "\0", 1) = -1 EPIPE (Broken pipe) 567 --- SIGPIPE (Broken pipe) --- 567 write(2, "Write failed flushing stdout buf"..., 36) = 36 567 write(2, "\r\n", 2) = 2 567 write(2, "write stdout: Broken pipe\r\n", 27) = 27 567 gettimeofday({991258220, 268040}, NULL) = 0 567 shutdown(4, 2 /* send and receive */) = 0 567 close(4) = 0 567 _exit(-1) = ?