linuxmint / linuxmint/slick-greeter

With fingerprint check enabled, the login process can happen without password or the fingerprint itself

Open
#225 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vala
Stars
441
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Distribution

Mint 21.1 (Vera)

Package version

5.6.8

Graphics hardware in use

NVIDIA UNIX x86_64 Kernel Module 535.113.01

Frequency

Always

Bug description

I have a Lenovo P16s and I have enabled the fingerprint reader essentialy as described here

$ sudo apt install libpam-fprintd
... reboot ...
$ fprintd-enroll -f [finger]
...

All works very well I have to say. I have been using this for more than a week.

But I have just discovered that, at login time, if I don't put my finger on the reader, I can simply click on "Log in" and log into the system, whereas normally I'd enter my password.
There's only my user on the system.

Steps to reproduce
  • have a computer with the fingerprint reader
  • install pam module for fingerprint as also described here https://blog.horner.tj/mint-fingerprint-auth-x1c7/
  • reboot
  • enroll your fingerprints
  • use the system, especially sudo commands which work as expected
  • logout and reboot
  • on login, don't put your finger, don't enter the password, just click on the button "Log in", you will be granted access.
Expected behavior

At login time you should enter the right password, or have the right finger on the reader.
Note that all the other functionalities seem to be working as expected (e.g. sudo)

Additional information

The auth.log reported the following while I was logging in just by pressing "Log in":

Oct 24 08:37:51 p16 systemd-logind[1110]: New seat seat0.
Oct 24 08:37:51 p16 systemd-logind[1110]: Watching system buttons on /dev/input/event2 (Power Button)
Oct 24 08:37:51 p16 systemd-logind[1110]: Watching system buttons on /dev/input/event1 (Lid Switch)
Oct 24 08:37:51 p16 systemd-logind[1110]: Watching system buttons on /dev/input/event0 (Sleep Button)
Oct 24 08:37:51 p16 systemd-logind[1110]: Watching system buttons on /dev/input/event9 (Intel HID events)
Oct 24 08:37:51 p16 systemd-logind[1110]: Watching system buttons on /dev/input/event3 (AT Translated Set 2 keyboard)
Oct 24 08:37:51 p16 systemd-logind[1110]: Watching system buttons on /dev/input/event4 (ThinkPad Extra Buttons)
Oct 24 08:37:54 p16 lightdm: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=112) by (uid=0)
Oct 24 08:37:54 p16 systemd-logind[1110]: New session c1 of user lightdm.
Oct 24 08:37:54 p16 systemd: pam_unix(systemd-user:session): session opened for user lightdm(uid=112) by (uid=0)
Oct 24 08:37:54 p16 lightdm: gkr-pam: gnome-keyring-daemon started properly
Oct 24 08:37:55 p16 lightdm: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "antonio"
Oct 24 08:37:56 p16 lightdm: gkr-pam: no password is available for user
Oct 24 08:38:02 p16 systemd-logind[1110]: Removed session c1.
Oct 24 08:38:02 p16 lightdm: pam_unix(lightdm:session): session opened for user antonio(uid=1000) by (uid=0)
Oct 24 08:38:02 p16 systemd-logind[1110]: New session c2 of user antonio.
Oct 24 08:38:02 p16 systemd: pam_unix(systemd-user:session): session opened for user antonio(uid=1000) by (uid=0)
Oct 24 08:38:02 p16 lightdm: gkr-pam: gnome-keyring-daemon started properly
Oct 24 08:38:03 p16 polkitd(authority=local): Registered Authentication Agent for unix-session:c2 (system bus name :1.79 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the LightDM login flow in slick-greeter and the authentication-related PAM behavior shown in auth.log, especially the pam_succeed_if and pam_unix entries. Reproduce the login with libpam-fprintd enabled, then verify that login requires either the correct password or an enrolled fingerprint while sudo authentication continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
authentication, desktop-dev, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.