From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Emacs hangs when using tramp with su Date: Tue, 03 Apr 2012 21:01:58 +0200 Message-ID: <87pqboabbt.fsf@gmx.de> References: <4F7B161F.1010109@gmail.com> <87vclgaeo8.fsf@gmx.de> <4F7B45DD.5020700@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333479746 29938 80.91.229.3 (3 Apr 2012 19:02:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Apr 2012 19:02:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Mathias Millet Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 03 21:02:25 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SF8zn-0000oU-Uu for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Apr 2012 21:02:24 +0200 Original-Received: from localhost ([::1]:53200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SF8zn-0007iD-A6 for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Apr 2012 15:02:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SF8zc-0007hm-Gn for help-gnu-emacs@gnu.org; Tue, 03 Apr 2012 15:02:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SF8zW-0000WQ-8b for help-gnu-emacs@gnu.org; Tue, 03 Apr 2012 15:02:12 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:40338) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SF8zV-0000Vd-UL for help-gnu-emacs@gnu.org; Tue, 03 Apr 2012 15:02:06 -0400 Original-Received: (qmail invoked by alias); 03 Apr 2012 19:02:03 -0000 Original-Received: from p57BB9705.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.5] by mail.gmx.net (mp071) with SMTP; 03 Apr 2012 21:02:03 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/pmLogRnfpnPVnh+rN7U10PmlfZDPlA+zIyhka5i zcTukmxluVcJkk In-Reply-To: <4F7B45DD.5020700@gmail.com> (Mathias Millet's message of "Tue, 03 Apr 2012 20:47:57 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84295 Archived-At: Mathias Millet writes: > Hi Michael, Hi Mathias, > as requested, here are the needed files. > My emacs version is : > GNU Emacs 23.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.9) > of 2012-02-01 on shirley.hoetzel.info As suspected, Tramp is hanging in an unrecognizable prompt (showing ansi colors): --8<---------------cut here---------------start------------->8--- ;; GNU Emacs: 23.4.1 Tramp: 2.1.21-pre -*- mode: outline; -*- 20:27:40.648463 tramp-accept-process-output (10) # #$ 20:27:40.666808 tramp-send-string (10) # exec su - root 20:27:40.680922 tramp-accept-process-output (10) # Password: 20:27:43.066638 tramp-accept-process-output (10) # [0;33m( [1;33m~ [0;33m)[1;31m >[0;31m>[0m --8<---------------cut here---------------end--------------->8--- ... and so on. What happens, if you call from a terminal "exec su - root"? Does it help, if you unset the prompt in root's .profile? > Best regards, > > Mathias Best regards, Michael.