Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197444 - su with app-emacs/tramp in GNU Emacs doesn't work after update of sys-libs/pwbd and sys-libs/pam
Summary: su with app-emacs/tramp in GNU Emacs doesn't work after update of sys-libs/pw...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Emacs project
URL: http://lists.gnu.org/archive/html/tra...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-29 18:50 UTC by thierry volpiatto
Modified: 2007-10-30 18:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge.log_2007.10.30 (emerge.log_2007.10.30,7.75 KB, text/plain)
2007-10-30 10:40 UTC, thierry volpiatto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thierry volpiatto 2007-10-29 18:50:37 UTC
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
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-30 08:11:20 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.
Comment 2 Ulrich Müller gentoo-dev 2007-10-30 08:26:47 UTC
Wild guess: The password prompt has changed and cannot be parsed anymore.
What was the prompt before the update, and what is it now?
Comment 3 thierry volpiatto 2007-10-30 09:01:57 UTC
>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

Comment 4 thierry volpiatto 2007-10-30 09:14:38 UTC
Notice tramp work really well when i connect with ssh to
a remote computer
Comment 5 thierry volpiatto 2007-10-30 10:05:28 UTC
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

Comment 6 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-30 10:35:29 UTC
(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?
Comment 7 thierry volpiatto 2007-10-30 10:40:47 UTC
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.
Comment 8 thierry volpiatto 2007-10-30 10:46:19 UTC
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
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-30 10:58:49 UTC
(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.

Comment 10 thierry volpiatto 2007-10-30 11:07:00 UTC
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 "\" ?
Comment 11 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-30 11:08:34 UTC
Try
 $ LC_ALL=C emacs

and then test.
Comment 12 thierry volpiatto 2007-10-30 11:19:42 UTC
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
 
Comment 13 thierry volpiatto 2007-10-30 11:24:13 UTC
In the emacs shell, the prompt for password is password
and is hidden again
the command chown root:root emerge.log...
work again

Comment 14 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-30 11:29:12 UTC
I reported it upstream and will file a reference URL as soon as it appears in the mailing-list archive (moderator-approval needed).
Comment 15 thierry volpiatto 2007-10-30 11:35:56 UTC
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
Comment 16 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-30 18:16:50 UTC
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.
Comment 17 thierry volpiatto 2007-10-30 18:48:45 UTC
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.