[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tramp and sudo
From: |
Björn Lindström |
Subject: |
Tramp and sudo |
Date: |
Fri, 01 Aug 2003 14:51:06 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
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 /address@hidden:/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 address@hidden'
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 and sudo,
Björn Lindström <=