Emacs hangs when using tramp with su

after reinstalling my system, I found that emacs tramp was not working. Here's what exactly happens: I type Cx Cf / su: root @ localhost: Here emacs asks for my password, which I provide. Then it hangs showing the above line in minibuffer and then Tramp: Waiting for prompts from remote shell

This is what is in tramp / su root @ localhost:

Password: Password: 
su: incorrect password

Process *tramp/su root@localhost* exited abnormally with code 125

      

And here's what's in the debug tramp / su root @ localhost

http://pastebin.com/0CKD1yM3

Last line:

17:13:59.988240 tramp-file-name-handler (1) # Interrupt received in operation (file-exists-p /su:root@localhost:) 

      

it looks like the hangs are happening inside tramp-file-name-handler or file-exists-p / su: root @ localhost: but I really don't know what to do about it ...

My emacs version is 23.4.1

I would be glad if someone knows what might be causing this!

Edit: It turned out that this was due to my prompt being poorly configured ... My PS1 variable for roots contained colors and detecting color terminals was not working

+3


source to share





All Articles