On Fri, Dec 14, 2007 at 09:23:41PM +0100, Sven Joachim wrote: > On 2007-12-14 04:54 +0100, Trent W. Buck wrote: > > Trying to access the tramp sudo method causes Emacs to hang forever, > I cannot reproduce this. Is it possible that you have an old tramp > version somewhere in your load-path?
I don't believe so:
$ emacs22 -Q -batch -eval '(message (locate-library "tramp"))' -eval
'(require (quote tramp))' -eval '(message tramp-version)'
/usr/share/emacs/22.1/lisp/net/tramp.elc
2.0.55
> The tramp package that comes with Emacs 22 (2.0.55) correctly uses
> sudo's -p option for the password prompt.
I guess I'm mis-diagnosing the problem. Calling sudo by hand with the
same arguments results in a warning
$ sudo -u root -s -p Password:
Password:
bash: /home/twb/.bashrc: Permission denied
[EMAIL PROTECTED]:~/Desktop#
because /home is a root_squash'd NFS filesystem and the nobody user
does not have read access to my dotfiles
$ stat -L ~/.bashrc
File: `/home/twb/.bashrc'
Size: 388 Blocks: 8 IO Block: 32768 regular file
Device: 14h/20d Inode: 2458963 Links: 1
Access: (0640/-rw-r-----) Uid: ( 1000/ twb) Gid: ( 100/ users)
Access: 2007-12-15 14:57:45.000000000 +1100
Modify: 2007-09-25 10:10:55.000000000 +1000
Change: 2007-10-22 21:12:56.000000000 +1000
I forgot to mention in the original report that the last message is
"tramp: Setting shell prompt"
$ emacs -batch -nw -Q -f toggle-debug-on-quit /sudo::/
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...
tramp: Setting up remote shell environment
tramp: Checking remote host type for `send-process-string' bug
tramp: Determining coding system
tramp: Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1; export
HISTFILE; export HISTSIZE'
tramp: Waiting 30s for `set +o vi +o emacs'
tramp: Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
tramp: Waiting 30s for `unset CDPATH'
tramp: Setting shell prompt
signature.asc
Description: Digital signature

