From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: tramp again Date: Thu, 22 Aug 2002 17:31:48 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1030030414 2383 127.0.0.1 (22 Aug 2002 15:33:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 Aug 2002 15:33:34 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17htxj-0000cK-00 for ; Thu, 22 Aug 2002 17:33:31 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17huQf-0006ND-00 for ; Thu, 22 Aug 2002 18:03:25 +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 17htyk-0000iF-00; Thu, 22 Aug 2002 11:34:34 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17htwj-0000ZG-00 for emacs-devel@gnu.org; Thu, 22 Aug 2002 11:32:29 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17htwD-0000WS-00 for emacs-devel@gnu.org; Thu, 22 Aug 2002 11:32:28 -0400 Original-Received: from waldorf.cs.uni-dortmund.de ([129.217.4.42]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17htwC-0000WF-00; Thu, 22 Aug 2002 11:31:56 -0400 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g7MFVsb08136; Thu, 22 Aug 2002 17:31:54 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id RAA02583; Thu, 22 Aug 2002 17:31:49 +0200 (MET DST) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 33EA43B1CB; Thu, 22 Aug 2002 17:31:48 +0200 (CEST) Original-To: Miles Bader In-Reply-To: (Miles Bader's message of "22 Aug 2002 10:12:30 +0900") Original-Lines: 81 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) 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:6763 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6763 Miles Bader writes: > 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? I agree that this is annoying. I didn't think of providing short filenames when I was working on Tramp initially. I have now changed Tramp to assume "root" when the user name isn't specified in the filename. The change has not been committed yet, I'll check it in with the next batch of changes. I assume it's not that urgent. > 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: [...] > 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 guess that the shell-prompt-pattern is still the problem. I didn't have much time to work on Tramp recently. I have now committed version 2.0.14 which tries to fix this. Whenever Tramp looks for a shell prompt, it uses shell-prompt-pattern in addition to the new variable tramp-shell-prompt-pattern. The default value for the new variable is the same as the default value for shell-prompt-pattern. > I did (setq shell-prompt-pattern nil) and tried again. Well, now either Tramp doesn't recognize any shell prompts at all, or it recognizes the string "nil" as the shell prompt. > 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 It seems it searches for the string "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? I'm sorry that there are so many troubles with it. It is, however, not easy to get it right. (At least not for me.) I hope you're not too angry and give me a chance to fix all the problems that appear. I want to get it working right! kai -- A large number of young women don't trust men with beards. (BFBS Radio)