Bug 134695 - KDESU requests finger print twice when used with pam_bioapi for biometric authentication
Summary: KDESU requests finger print twice when used with pam_bioapi for biometric aut...
Status: CONFIRMED
Alias: None
Product: kdesu
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdesu bugs tracker
URL:
Keywords:
: 155988 251560 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-26 18:39 UTC by Robert Huitl
Modified: 2021-03-09 23:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Huitl 2006-09-26 18:39:41 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Gentoo Packages
Compiler:          gcc version 4.1.1 (Gentoo 4.1.1) i686-pc-linux-gnu
OS:                Linux

I use a slightly non-standard pam.d/sys-auth file to make tools like 'su' ask for a finger print instead of a password:

------------
auth       required     pam_env.so
auth       sufficient   pam_bioapi.so {...} /etc/bioapi/pam/
auth       sufficient   pam_unix.so likeauth nullok
auth       required     pam_deny.so

account    required     pam_unix.so

password   required     pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
password   sufficient   pam_bioapi.so {...} /etc/bioapi/pam/
password   sufficient   pam_unix.so nullok md5 shadow use_authtok
password   required     pam_deny.so

session    required     pam_limits.so
session    required     pam_unix.so
------------

Depending on whether DISPLAY is set (and xauth allows root to use my display), this makes su either
1) prompt for finger print authentication on the console:
---------
Verification start
Put finger
Image processing
Scanned good image
Operation succeeded
---------
2) pop up a window asking to swipe my finger over the reader. In this case, there's no console output at all.


Now a problem with KDESU arises because it's trying to run kdesu_stub with the desired privileges in order to find out if a password is needed. su does what it's supposed to, it asks for the finger print.

I swipe my finger and kdesu finds that no password is needed. Consequently, it goes on and starts the program with su, which asks for the finger print a second time.
Comment 1 Oswald Buddenhagen 2010-11-06 18:22:26 UTC
see bug 115898 comment 16
Comment 2 Oswald Buddenhagen 2010-11-06 20:33:13 UTC
*** Bug 155988 has been marked as a duplicate of this bug. ***
Comment 3 Oswald Buddenhagen 2010-11-07 00:07:11 UTC
*** Bug 251560 has been marked as a duplicate of this bug. ***
Comment 4 Justin Zobel 2021-03-09 23:42:25 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.