unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* tramp again
@ 2002-08-22  1:12 Miles Bader
  2002-08-22  8:13 ` Andreas Schwab
  2002-08-22 15:31 ` Kai Großjohann
  0 siblings, 2 replies; 8+ messages in thread
From: Miles Bader @ 2002-08-22  1:12 UTC (permalink / raw)


It's been a while since I last tried tramp, so I checked to see if I
could a simple `su' today.  Here's what happened.

First, I tried `/su:localhost:/etc', and tramp told me `you must use a
username with the `su' method'.  This seems wrong -- 99% of the time,
when someone su's they want to su to root; it's annoying enough that
you have to type `localhost', but why should you have to type `root' too?

Okay, anyway, I next tried `/su:root@localhost:/etc'.  Tramp asked me
for a password, and I gave the root password.  Then tramp appeared to
hang, displaying the message:

   Looking for pattern \(Store key in cache\? (y/n)\)\s-*

I guess it was actually looping; here's the *Messages* contents:

   tramp: Opening connection for `root' using `su'...
   tramp: Processing actions
   tramp: Waiting 60s for prompt from remote shell
   tramp: Looking for pattern ^.*\([pP]assword\|passphrase.*\):
   Password: .......
   tramp: Looking for pattern .*ogin: *
   tramp: Looking for pattern ^\(([^) 	]*)\|[^> 	]*[>]\)\s-*
   tramp: Looking for pattern ^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service not known\|\(?:Permission denied\|Sorry, try again\)\.\).*\|^.*\(Received signal [0-9]+\).*
   tramp: Looking for pattern \(Are you sure you want to continue connecting (yes/no)\?\)\s-*
   tramp: Looking for pattern \(Store key in cache\? (y/n)\)\s-*
   tramp: Looking for pattern ^.*\([pP]assword\|passphrase.*\):
   tramp: Looking for pattern .*ogin: *
   tramp: Looking for pattern ^\(([^) 	]*)\|[^> 	]*[>]\)\s-*
   tramp: Looking for pattern ^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service not known\|\(?:Permission denied\|Sorry, try again\)\.\).*\|^.*\(Received signal [0-9]+\).*
   tramp: Looking for pattern \(Are you sure you want to continue connecting (yes/no)\?\)\s-*
   tramp: Looking for pattern \(Store key in cache\? (y/n)\)\s-*
   tramp: Looking for pattern ^.*\([pP]assword\|passphrase.*\):
   tramp: Looking for pattern .*ogin: *
   tramp: Looking for pattern ^\(([^) 	]*)\|[^> 	]*[>]\)\s-*
   tramp: Looking for pattern ^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service not known\|\(?:Permission denied\|Sorry, try again\)\.\).*\|^.*\(Received signal [0-9]+\).*
   tramp: Looking for pattern \(Are you sure you want to continue connecting (yes/no)\?\)\s-*
   tramp: Looking for pattern \(Store key in cache\? (y/n)\)\s-*
   Quit

Here's the contents of the `*tramp/su root@localhost*' buffer:


   mcspd15:~# 

[I indented it; it's actually flush with the left margin]

Has tramp been fixed to not use `shell-prompt-pattern' incorrectly yet?

Maybe that's the problem.

I did (setq shell-prompt-pattern nil) and tried again.  This time, it
hung displaying:

   Waiting 30s for remote `/bin/sh' to come up...

Not sure what was wrong this time; the contents of the `*tramp...'
buffer were the same as before, but *Messages* showed:

   tramp: Opening connection for `root' using `su'...
   tramp: Processing actions
   tramp: Waiting 60s for prompt from remote shell
   tramp: Looking for pattern ^.*\([pP]assword\|passphrase.*\):
   Password: .......
   tramp: Looking for pattern .*ogin: *
   tramp: Looking for pattern nil
   tramp: Found remote shell prompt.
   tramp: Waiting 30s for remote `/bin/sh' to come up...
   Quit

Does tramp seem this fragile for anyone else?

-Miles
-- 
I'd rather be consing.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-08-23  1:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-22  1:12 tramp again Miles Bader
2002-08-22  8:13 ` Andreas Schwab
2002-08-22 12:19   ` Robert J. Chassell
2002-08-22 15:55     ` Kai Großjohann
2002-08-22 17:00       ` Robert J. Chassell
2002-08-22 17:38         ` Kai Großjohann
2002-08-22 15:31 ` Kai Großjohann
2002-08-23  1:36   ` Miles Bader

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).