I have this in my .emacs:

(require 'tramp)
(add-to-list 'tramp-default-method-alist '("some.host" "" "ssh"))
(add-to-list 'tramp-default-method-alist
             '("\\`localhost\\'" "\\`root\\'" "sudo"))

When I try to C-x C-f /[EMAIL PROTECTED]:/some/file I get these messages:

tramp: Opening connection for `root' using `sudo'...
tramp: Waiting for prompts from remote shell
tramp: Waiting 60s for prompt from remote shell
tramp: Found remote shell prompt.
tramp: Waiting 30s for remote `/bin/sh' to come up...
apply: Couldn't `exec env 'ENV=' 'PS1=$ ' /bin/sh', see buffer
`*tramp/sudo [EMAIL PROTECTED]'

The buffer *tramp... just contains `exec env 'ENV=' 'PS1=$ ' /bin/sh'.

I'm a bit perplexed, since the code in .emacs is basically cut'n pasted
from the tramp manual.

Any ideas?



_______________________________________________
Tramp-devel mailing list
[EMAIL PROTECTED]
http://mail.nongnu.org/mailman/listinfo/tramp-devel

Reply via email to