>>>>> "K" == Kai Großjohann <[EMAIL PROTECTED]> writes:
Kai,
Copying your commands verbatim, I get:
> What does M-: (file-readable-p "FILE") RET say?
nil
> What does M-: (file-writable-p "FILE") RET say?
nil
> What does M-: (file-attributes "FILE") RET say?
nil
> Log in to the remote host in the same manner that you've used with
> Tramp -- what do `test -r', `test -w' and `ls -l' say about the file?
turing.swift 501> test -r ~/.tcshrc
turing.swift 502> test -w ~/.tcshrc
turing.swift 503> ls -l ~/.tcshrc
-rw------- 1 swift g10651 3130 Jun 27 08:52 /u/swift/.tcshrc
turing.swift 504> test -r /hc/swift/.tcshrc
turing.swift 505> test -w /hc/swift/.tcshrc
turing.swift 506> ls -l /hc/swift/.tcshrc
-rw------- 1 swift g10651 3130 Jun 27 08:52 /hc/swift/.tcshrc
Here's something new and different that I just noticed. I can toggle
both the "read-only" behavior and the missing remote machine-name
behavior by using tilde expansion or an explicit path. Previously,
the read-only behavior appeared randomly and the missing machine name
did not occur. To clarify, if I open this file as:
/r@turing:swift@localhost:/hc/swift/.tcshrc
the file opens read/write and when I open another file from within
that buffer, the prompt is pre-pended with the same remote machine
information.
"Find file: /r@turing:swift@localhost:/hc/swift/"
However, if I open with:
/r@turing:swift@localhost:~/.tcshrc
the file is opened read-only and subsequent find file commands prompt
me with:
"Find file: /hc/swift/"
This is absolutely reproducible for me. I've done it about at least a
half dozen times now. In different emacs sessions and even across a
machine reboot to restart the sshd.
Some pertinent information:
You will notice that this is a custom connect method. I have to
connect to the remote machine through a ssh gateway using
port-forwarding. I've never been able to get the multi-hop methods to
work, so I just created a method for each tunneled machine I go to.
This method is:
("turing" (tramp-connection-function tramp-open-connection-rsh) (tramp-rsh-program
"ssh") (tramp-rcp-program "scp") (tramp-remote-sh "/bin/sh") (tramp-rsh-args ("-e"
"none" "-p" "5555")) (tramp-rcp-args ("-P" "5555")) (tramp-rcp-keep-date-arg "-p")
(tramp-su-program nil) (tramp-su-args nil) (tramp-encoding-command nil)
(tramp-decoding-command nil) (tramp-encoding-function nil) (tramp-decoding-function
nil) (tramp-telnet-program nil))
local machine:
SGI O2, IRIX 6.5.12f
Emacs v20.7
$Id: tramp.el,v 2.0.2.3 2001/03/28 21:44:30 grossjoh Exp $
OpenSSH_2.9p1, SSH protocols 1.5/2.0, OpenSSL 0x0090601f
remote machine:
SGI Origin 2000, IRIX 6.5.10f
tcsh 6.04.00 (Cornell) 93/07/03 (iris4d) options 8b,nls,dl
SSH Version 1.2.27 [mips-sgi-irix6.5_NAS1.05_RT], protocol version 1.5.
Standard version. Does not use RSAREF.
+large socket buffers +sortaddrs
This behavior has changed since upgrading OpenSSH 2.5p2 to 2.9p1 on
the local machine this morning. The local machine was also upgraded
from IRIX 6.5.11f to 6.5.12f a few days ago, but I believe I have
successfully opened files on the remote machine "turing" since the OS
upgrade.
That's about all the parameters I can think of. If you need more,
just let me know.
Thanks,
Spencer