Summary: | su with app-emacs/tramp in GNU Emacs doesn't work after update of sys-libs/pwbd and sys-libs/pam | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | thierry volpiatto <thierry.volpiatto+gentoobug> |
Component: | New packages | Assignee: | Emacs project <emacs> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://lists.gnu.org/archive/html/tramp-devel/2007-10/msg00064.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge.log_2007.10.30 |
Description
thierry volpiatto
2007-10-29 18:50:37 UTC
Here it waits endlessly for a prompt. su - root && exit || exit is called by tramp, and this works well here on a command line. Wild guess: The password prompt has changed and cannot be parsed anymore. What was the prompt before the update, and what is it now? >What was the prompt before the update, and what is it now?
The problem is that i am no more prompted for password:
I do /su::/some_path
and i have:
Tramp:waiting for prompt for remote shell
and :
fail or authentification fail
before i was prompted imidiately for my root passwd
Notice tramp work really well when i connect with ssh to a remote computer I reproduce the bug right now on my other pc: su in emacs was working fine; I did the update (i will send an emerge.log in next post) i restart emacs, and i was unable to su (In reply to comment #4) > Notice tramp work really well when i connect with ssh to > a remote computer It is a runtime problem, so we won't see much from the emerge.log I suppose. Here I have no authentication failure but it does not work either, so this IS a bug. After having a quick look at tramp.el, there is no check for errorlevel by the Lisp code itself, so maybe parsing fails. Currently tramp uses the following regex to determine the password prompt. "^.*\\([pP]assword\\|[pP]assphrase\\).*:\^@? *" Could you please check if the su command works all right on a normal command line and what the output is? Here I get "Passwort" (German), so maybe tramp is confused by your French translation? Created attachment 134706 [details]
emerge.log_2007.10.30
here the emerge.log of today;
So after this emerge, i was unable to su with tramp.
some other thing i found:
now in the shell of emacs, when i su:
the prompt is not hidden (that is in emacs23)
i was unable to chown thierry:thierry this_attached_file
i had to do this command in an external term.
when i su in the emacs shell (not eshell, the emacs shell) the prompt is in french: mot de passe_: before it was hidden , now it is in cleared text. and as i say in the last post the chown command don't work (In reply to comment #8) > when i su in the emacs shell (not eshell, the emacs shell) > the prompt is in french: > mot de passe_: > before it was hidden , now it is in cleared text. > and as i say in the last post the chown command don't work Adjusting the regexp helps here...so the problem is that tramp should call su with LC_ALL=C. Sorry , the password prompt is exactly: Mot de passe_: I forgot to uppercase M to modify the regex do you escape the " "(space) with a "\" ? Try $ LC_ALL=C emacs and then test. Yes, LC_ALL=C emacs work!!! :) bravo! the password prompt is in english I am going to check the shell in emacs now with emacs launched like that In the emacs shell, the prompt for password is password and is hidden again the command chown root:root emerge.log... work again I reported it upstream and will file a reference URL as soon as it appears in the mailing-list archive (moderator-approval needed). Thanks a lot for your help, waiting for some thing better, (the cause of that change after the update) i will launch emacs with LC_ALL=C emacs This is fixed in app-emacs/tramp-2.1.11-r1, which will be stabled in some days (normally 30, but this fix justifies less waiting time). URL added with bug report upstream, in the thread you will find the patch we used here. Thank you for the patch, i have applied it to tramp.el. It work fine, but there is always a problem (it's not really a problem) with the emacs shell: the su password prompt is in french and the password is in cleared text. however, the command chown work correctly. |