如何让指纹识别器与我的密码一起工作?

如何让指纹识别器与我的密码一起工作?

我有一台带有集成指纹识别器的 Lenovo Thinkpad T430。我想让它与我的密码一起使用,而不是替换它。我的意思是,当出现密码提示时,我希望能够立即输入密码,或者使用指纹识别器而无需任何额外的输入。

我设法让读者使用 fprint。我配置了所有的手指,并将相应的行添加到相应的配置文件中,就像现在一样,每当系统需要 root 密码时,它都会先提示我输入我的手指,如果失败 3 次,它就会给我一个密码迅速的。另外,在我的登录屏幕上,除非我先在空密码提示中按 Enter 键,否则我无法使用阅读器。

我想我应该详细介绍我的登录屏幕和发行版。我将 lightdm 与 webkit2-greeter 一起使用,并为该greeter 定制了一个名为 Aether 的主题。操作系统是带有 Cinnamon 桌面的 Linux Mint 20。正如我所说,我无法使用阅读器,直到我在空白字段上按 Enter 键,然后我就可以毫无问题地登录。我宁愿选择使用我的阅读器登录,而无需任何额外的输入。这些是我的配置文件:

/etc/pam.d/common-auth

#
# /etc/pam.d/common-auth - authentication settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the
# traditional Unix authentication mechanisms.
#
# As of pam 1.0.1-6, this file is managed by pam-auth-update by default.
# To take advantage of this, it is recommended that you configure any
# local modules either before or after the default block, and use
# pam-auth-update to manage selection of other modules.  See
# pam-auth-update(8) for details.

# here are the per-package modules (the "Primary" block)
auth    sufficient  pam_fprintd.so                      <-- RELEVANT LINE
auth    [success=1 default=ignore]  pam_unix.so nullok_secure
# here's the fallback if no module succeeds
auth    requisite           pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
auth    required            pam_permit.so
# and here are more per-package modules (the "Additional" block)
auth    optional    pam_ecryptfs.so unwrap
auth    optional            pam_cap.so 
# end of pam-auth-update config

/etc/pam.d/lightdm

#%PAM-1.0
auth    sufficient  pam_fprintd.so      <-- RELEVANT LINE
auth    requisite       pam_nologin.so
auth    sufficient      pam_succeed_if.so user ingroup nopasswdlogin
@include common-auth
auth    optional        pam_gnome_keyring.so
auth    optional        pam_kwallet.so
auth    optional        pam_kwallet5.so
@include common-account
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
#session required        pam_loginuid.so
session required        pam_limits.so
@include common-session
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
session optional        pam_gnome_keyring.so auto_start
session optional        pam_kwallet.so auto_start
session optional        pam_kwallet5.so auto_start
session required        pam_env.so readenv=1
session required        pam_env.so readenv=1 user_readenv=1 envfile=/etc/default/locale
@include common-password

/etc/pam.d/lightdm-greeter

#%PAM-1.0
auth    sufficient  pam_fprintd.so         <-- RELEVANT LINE
auth    required        pam_permit.so
auth    optional        pam_gnome_keyring.so
auth    optional        pam_kwallet.so
auth    optional        pam_kwallet5.so
@include common-account
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
session required        pam_limits.so
@include common-session
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
session optional        pam_gnome_keyring.so auto_start
session optional        pam_kwallet.so auto_start
session optional        pam_kwallet5.so auto_start
session required        pam_env.so readenv=1
session required        pam_env.so readenv=1 user_readenv=1 envfile=/etc/default/locale

任何有关我如何实现这一目标的想法将不胜感激,谢谢。

编辑:添加了操作系统和 DE (Linux Mint 20 Cinnamon)

相关内容