登录屏幕上有时不提供指纹登录选项

登录屏幕上有时不提供指纹登录选项

我在安装 Ubuntu 22.04 时遇到了一个奇怪的问题。指纹登录有时不起作用。当它不起作用时,我看不到(or place finger on reader)密码框下的消息。

这是功能还是错误?如果是功能,它根据什么来决定是否允许指纹登录?如果是错误,有解决方案或解决方法吗?

我曾看到过与指纹登录问题相关的其他帖子,但那里的问题并不像我的那样间歇性。

硬件:联想 L15 Gen3 (AMD) 操作系统:Ubuntu 22.04 LTS

在此处输入图片描述

答案1

按照这个帖子,我发现我需要更新我的 /etc/pam.d/gdm-fingerprint,如下所示。最后一行指向 pam_fprintd.so,但根据帖子https://github.com/NixOS/nixpkgs/issues/171136我发现 pam_deny.so 正是所需要的。

#%PAM-1.0
auth    requisite       pam_nologin.so
auth    required        pam_succeed_if.so user != root quiet_success
auth    required        pam_fprintd.so
auth    optional        pam_gnome_keyring.so
@include common-account
# SELinux needs to be the first session rule. This ensures that any 
# lingering context has been cleared. Without this it is possible 
# that a module could execute code in the wrong domain.
session [success=ok ignore=ignore module_unknown=ignore default=bad]        pam_selinux.so close
session required        pam_loginuid.so
# SELinux needs to intervene at login time to ensure that the process
# starts in the proper default security context. Only sessions which are
# intended to run in the user's context should be run after this.
# pam_selinux.so changes the SELinux context of the used TTY and configures
# SELinux in order to transition to the user context with the next execve()
# call.
session [success=ok ignore=ignore module_unknown=ignore default=bad]        pam_selinux.so open
session optional        pam_keyinit.so force revoke
session required        pam_limits.so
session required        pam_env.so readenv=1
session required        pam_env.so readenv=1 user_readenv=1 envfile=/etc/default/locale
@include common-session
session optional        pam_gnome_keyring.so auto_start
# causes issue with fingerprint, change to pam_deny.so
# and it works every time
#password required       pam_fprintd.so
password required       pam_deny.so

相关内容