Since i have updated pam and pwdb with emerge -avuND world i can't use anymore tramp to: /su::/etc for exemple ; the error message is : authentification failed (before entering the root password) Portage 2.1.3.16 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r8 x86_64) ================================================================= System uname: 2.6.22-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3500+ Timestamp of tree: Mon, 29 Oct 2007 08:50:02 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://gentoo.imj.fr/pub/gentoo/ " LANG="fr_FR.UTF-8" LC_ALL="fr_FR.UTF-8" LINGUAS="fr" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac abook acl agg aiglx alsa amd64 amr ao async bash-completion bbdb bcmath berkdb bitmap-fonts cdaudio cddb cdparanoia cdr cdrom cdsound chroot clamav clamd cli colordiff cpudetection cracklib crypt cups dbus dhcp divx dri dvb dvd dvdr dvdread emacs emacs-w3 enca encode epson escreen esd exif ffmpeg firefox fontconfig fortran gdbm gif gimp gnus gpm gtk gtk2 hpn http icecast iconv imagemagick imlib ipv6 isdnlog jack java javascript jpeg lame leim logrotate lynxkeymap mad midi mikmod mime mjpeg mp3 mpd mpeg mplayer mudflap multi-tty ncurses network nls nptl nptlonly nvidia ogg opengl openmp openssh openssl pam paste64 pcre pdf perl planner png pnm pop postproc ppds pppd preview-latex print procmail python qt3 readline realmedia reflection restrict-javascript scanner session slang sound spell spl ssl subject-rewrite subtitles subversion svg tcl tcpd tga tiff tk transcode truetype truetype-fonts type1 type1-fonts unicode usb v4l v4l2 vcd vorbis wav webdav wma wxwindows xanim xft xinerama xml xorg xpm xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
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.