如何让 fprint 为 su 工作,它为 sudo 工作

问题描述

使用 manjaro-KDE,我的指纹读取器适用于登录和 sudo,但不适用于 su;在 $su 之后它要求输入密码。如何解决这个问题?我在 /etc/pam.d 中的配置:

#%PAM-1.0
# sudo: next line added,works
auth        sufficient      pam_fprintd.so

auth        include         system-auth
account     include         system-auth
session     include         system-auth

#%PAM-1.0
# su: next line added,asks for password
auth        sufficient      pam_fprintd.so

auth        sufficient      pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth       sufficient      pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth       required       pam_wheel.so use_uid
auth        required       pam_unix.so
account     required       pam_unix.so
session     required       pam_unix.so

解决方法

在 $su 之后它要求输入密码

你应该试试

$ su YOUR_USERNAME