thinkfinger: long pause before and after PAM prompt

Bug #355940 reported by Marius Gedminas
40
This bug affects 5 people
Affects Status Importance Assigned to Milestone
thinkfinger (Ubuntu)
New
Undecided
Unassigned

Bug Description

In jaunty, it takes 5 seconds (!) after I type sudo before the 'Password or swipe finger' prompt shows up. Then if I type my password it takes 11 more seconds (!) until I get a root shell.

The same pauses are present in the login prompt at the text virtual consoles.

If the thinkfinger is busy showing a prompt in one terminal, and I run sudo again in a second terminal, that second terminal gives me a plain [sudo] prompt immediately (no 5 second pause!) and then a root shell ~4 seconds after I press Enter. Those 4 seconds could easily be root's .bash_profile running /etc/bash_completion, I haven't checked.

Nevertheless, the pauses before and after the prompt are missing when thinkfinger is not being used, which is why I'm filing this bug report against it.

(I could double-check by disabling thinkfinger altogether in /etc/pam.d, but it's 3 am and I'm afraid to break my system by introducing a typo or something).

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: libpam-thinkfinger 0.3+r118-0ubuntu4~ppa2
ProcEnviron:
 LC_CTYPE=lt_LT.UTF-8
 PATH=(custom, user)
 LANG=lt_LT.UTF-8
 SHELL=/bin/bash
SourcePackage: thinkfinger
Uname: Linux 2.6.28-11-server i686
UnreportableReason: This is not a genuine Ubuntu package

Revision history for this message
Marius Gedminas (mgedmin) wrote :
Revision history for this message
sanktnelson (launchpad-maibaums) wrote :

confirmed here. delay is gone after uninstalling thinkfinger.

Revision history for this message
Diogo Matsubara (matsubara) wrote :

I'm having the same problem. This might be a dupe of bug 311732

Revision history for this message
Matt (matthieu-cabos) wrote :

Also confirmed on a fresh install of Ubuntu 9.04 on my Dell XPS M1530.
When running the "tf-tool --acquire" or "tf-tool --verify" command, the delay can easily be traced to the "Initializing" phase of thinkfinger execution.

Revision history for this message
Marius Gedminas (mgedmin) wrote :

FWIW that 4 second pause on bash startup I was seeing with or without thinkfinger? It was bash parsing my ~/.bash_history (> 100000 lines).

The other pauses are thinkfinger's fault, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519631 which also links to http://bugzilla.kernel.org/show_bug.cgi?id=12301 and mentions there's a patch.

Revision history for this message
Andrei Emeltchenko (andrei-emeltchenko-finik) wrote :

Hei I had the same problems after upgrade to Jaunty. I had to remove thinkfinger :-(

Revision history for this message
Tobias Krais (tux-spam) wrote :

Hi together,

I had the same issue and even had randomly gdm crashes because of it.

Here my solution: add the following line to your package manager and install the thinkfinger updates:
deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main

This solves the long pause and also the issue that you have to press enter after swiping your finger ;-)

Please add these packages to the official repos!

Greetings, Tobias

Revision history for this message
raphael (raphoun) wrote :

Thanks Tobias it'ss working like a charm for me!

Raphaël

Revision history for this message
Tobias Krais (tux-spam) wrote :

Hi Raphael,

nice to hear, hoping this helps even more.

Greetings, Tobias

Revision history for this message
Ahmed Elayan (whateverian) wrote :

Hi Tobias Krais,

Had the same problem and your solution is working fine. THANKS

Revision history for this message
Michael Hanson (mhanson) wrote :

thanks, worked a charm

Revision history for this message
Marius Gedminas (mgedmin) wrote :

Unfortunately Jon's package (libpam-thinkfinger version 0.3+r118-0ubuntu5~ppa1) does NOT fix the problem for me:

1. sudo -s
2. 5 second pause
3. "Password or swipe finger: "

now there are two alternatives:

4a. Type password, press Enter
5a. 5 second pause
6a. root shell

and:

4b. Swipe finger.
5b. root shell

The pause in step 2 always exists, and the pause in step 5a is also not fixed :(

Revision history for this message
Andrei Emeltchenko (andrei-emeltchenko-finik) wrote :

Hei I have just checked latest libpam-thinkfinger and it is still not working.

Revision history for this message
Marius Gedminas (mgedmin) wrote :

bug still present in karmic (libpam-thinkfinger 0.3+r118-0ubuntu4)

summary: - [jaunty] long pause before and after PAM prompt
+ thinkfinger: long pause before and after PAM prompt
Revision history for this message
Valentin Atepalikhin (valentin-atep) wrote :

Had the same issue on my Gentoo system after an upgrade.
The solution mentioned here: http://www.joaoff.com/2009/06/30/making-thinkfinger-faster/
worked fine for me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.