From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: tramp again Date: 22 Aug 2002 10:12:30 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: Reply-To: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1029978836 2338 127.0.0.1 (22 Aug 2002 01:13:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 Aug 2002 01:13:56 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17hgXq-0000ba-00 for ; Thu, 22 Aug 2002 03:13:54 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17hh0U-0003Jp-00 for ; Thu, 22 Aug 2002 03:43:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hgYx-00034U-00; Wed, 21 Aug 2002 21:15:03 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17hgWj-00033E-00 for emacs-devel@gnu.org; Wed, 21 Aug 2002 21:12:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17hgWh-00032z-00 for emacs-devel@gnu.org; Wed, 21 Aug 2002 21:12:45 -0400 Original-Received: from tyo202.gate.nec.co.jp ([210.143.35.52]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hgWg-00032k-00; Wed, 21 Aug 2002 21:12:42 -0400 Original-Received: from mailgate4.nec.co.jp ([10.7.69.195]) by TYO202.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id g7M1Cd414510; Thu, 22 Aug 2002 10:12:39 +0900 (JST) Original-Received: from mailsv.nec.co.jp (mailgate51.nec.co.jp [10.7.69.196]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id g7M1Ccg15017; Thu, 22 Aug 2002 10:12:38 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp ([10.30.114.133]) by mailsv.nec.co.jp (8.11.6/3.7W-MAILSV-NEC) with ESMTP id g7M1CVG05554; Thu, 22 Aug 2002 10:12:35 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.10.2+Sun/3.7Wlsi_mx_6.0) with ESMTP id g7M1CUs13574; Thu, 22 Aug 2002 10:12:30 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id 8EF9B36F2; Thu, 22 Aug 2002 10:12:30 +0900 (JST) Original-To: emacs-devel@gnu.org System-Type: i686-pc-linux-gnu Blat: Foop Original-Lines: 75 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6739 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6739 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.