From d62c91c1b8225198301b7ddc0f6648abcebeaabc Mon Sep 17 00:00:00 2001 From: Moritz Heiber Date: Sun, 20 Oct 2024 11:19:04 +0200 Subject: [PATCH] Automate enabling fingerprint auth --- README.md | 8 +------- mitamae/configuration.rb | 5 +++++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 879c4ca..acf1505 100644 --- a/README.md +++ b/README.md @@ -73,13 +73,7 @@ git pull origin paperclip #### sudo with fingerprint authentication -Add a fingerprint in the GNOME user account management settings. Then: - -```console -sudo pam-auth-update -``` - -and select "Fingerprint authentication" in addition to the rest of the already selected methods. +Add a fingerprint in the GNOME user account management settings. #### Firefox diff --git a/mitamae/configuration.rb b/mitamae/configuration.rb index 71f96b6..5f39828 100644 --- a/mitamae/configuration.rb +++ b/mitamae/configuration.rb @@ -84,3 +84,8 @@ service 'bluetooth' do action :nothing end + +execute 'enable fingerprint auth' do + command 'pam-auth-update --enable fprintd' + not_if 'grep -q fprintd /etc/pam.d/common-auth' +end