unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1115: 23.0.60; Tramp hangs via 'su' with zsh
@ 2008-10-07 19:44 Gour
  2008-10-08  3:32 ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Gour @ 2008-10-07 19:44 UTC (permalink / raw)
  To: emacs-pretest-bug

Hi!

Few days ago I noticed that after building latest CVS I cannot edit
root's files via usual 'su' mechanism.

At first I thought the problem is that something was broken in the
latest code, but after attempting to build one month old CVS version and
seeing the same problem, I was convinced it's something else.

Then i remembered that recently I changed my root's default shell to zsh
and, indeed, after changing root's default shell to bash Tramp works
again.

Here is the output I got in tramp's buffer after setting 

(setq tramp-debug-buffer t)

(nitai is my local hostname)

Sincerely,
Gour


------ cut-here ---------------


Password: 
#                                                                              

nitai# 






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

* bug#1115: 23.0.60; Tramp hangs via 'su' with zsh
  2008-10-07 19:44 bug#1115: 23.0.60; Tramp hangs via 'su' with zsh Gour
@ 2008-10-08  3:32 ` Michael Albinus
  2008-10-08  8:04   ` Gour
       [not found]   ` <mailman.540.1223454688.25473.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Albinus @ 2008-10-08  3:32 UTC (permalink / raw)
  To: Gour; +Cc: 1115

Gour <gour@mail.inet.hr> writes:

> Hi!

Hi,

> Few days ago I noticed that after building latest CVS I cannot edit
> root's files via usual 'su' mechanism.
>
> At first I thought the problem is that something was broken in the
> latest code, but after attempting to build one month old CVS version and
> seeing the same problem, I was convinced it's something else.
>
> Then i remembered that recently I changed my root's default shell to zsh
> and, indeed, after changing root's default shell to bash Tramp works
> again.
>
> Here is the output I got in tramp's buffer after setting 
>
> (setq tramp-debug-buffer t)
>
> (nitai is my local hostname)

It looks like the zle problem. Read the Tramp manual about

  (info "(tramp)Frequently Asked Questions")

> Sincerely,
> Gour

Best regards, Michael.






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

* bug#1115: 23.0.60; Tramp hangs via 'su' with zsh
  2008-10-08  3:32 ` Michael Albinus
@ 2008-10-08  8:04   ` Gour
       [not found]   ` <mailman.540.1223454688.25473.bug-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Gour @ 2008-10-08  8:04 UTC (permalink / raw)
  To: 1115

[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]

>>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes:

Michael> It looks like the zle problem. Read the Tramp manual about

Michael>   (info "(tramp)Frequently Asked Questions")

Yeah, I got some help on zsh and put the following in my .zshrc files:

case $TERM in
    dumb) # tramp
        unsetopt zle
        ;;
esac


and the above solves the problem of accessing the root files on the same
machine via 'su'.

However, the remaining problem is remote access to files (e.g. from
laptop to desktop) when the tramp fails with when the remote machine has
the following 'prompt':

PS1="[%{${fg[green]}%}%n%{${fg[black]}%}@%{${fg[blue]}%}%m
%{${fg[red]}%}%1d%{${fg[black]}%}] "


The tramp's 'trace' is below:

------------------------- cut-here ----------------------
Last login: Wed Oct  8 08:05:26 2008 from 89.164.226.223
 
xgamma:  unable to open display ''
 
^[[32;01mKeyChain 2.6.8; ^[[34;01mhttp://www.gentoo.org/proj/en/keychain/^[[0m
Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL
 
 ^[[32;01m*^[[0m Found existing ssh-agent (3529)
 ^[[32;01m*^[[0m Found existing gpg-agent (3563)
 ^[[32;01m*^[[0m Known ssh key: ^[[34;01m/home/gour/.ssh/id_dsa^[[0m
 ^[[32;01m*^[[0m Known gpg key: ^[[34;01mC6E7162D^[[0m
 
[^[[32mgour^[[30m@^[[34mgaura-nitai ^[[31mgour^[[30m]
--------------------- cut-here -------------------------

Any idea?

Commenting the above PS1 'solves' the problem.


Sincerely,
Gour


-- 

Gour  | Zagreb, Croatia  | GPG key: C6E7162D
----------------------------------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

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

* bug#1115: 23.0.60; Tramp hangs via 'su' with zsh
       [not found]   ` <mailman.540.1223454688.25473.bug-gnu-emacs@gnu.org>
@ 2008-10-08 11:36     ` Michael Albinus
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2008-10-08 11:36 UTC (permalink / raw)
  To: Gour; +Cc: 1115

Gour <gour@mail.inet.hr> writes:

> Yeah, I got some help on zsh and put the following in my .zshrc files:
>
> case $TERM in
>     dumb) # tramp
>         unsetopt zle
>         ;;
> esac
>
>
> and the above solves the problem of accessing the root files on the same
> machine via 'su'.
>
> However, the remaining problem is remote access to files (e.g. from
> laptop to desktop) when the tramp fails with when the remote machine has
> the following 'prompt':
>
> PS1="[%{${fg[green]}%}%n%{${fg[black]}%}@%{${fg[blue]}%}%m
> %{${fg[red]}%}%1d%{${fg[black]}%}] "

Tramp is not able to detect such a prompt. Please set $PS1 to "$ " or
something like this, when $TERM is "dumb".

> Sincerely,
> Gour

Best regards, M>ichael.






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

end of thread, other threads:[~2008-10-08 11:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-07 19:44 bug#1115: 23.0.60; Tramp hangs via 'su' with zsh Gour
2008-10-08  3:32 ` Michael Albinus
2008-10-08  8:04   ` Gour
     [not found]   ` <mailman.540.1223454688.25473.bug-gnu-emacs@gnu.org>
2008-10-08 11:36     ` Michael Albinus

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).