You are not logged in.

#1 2024-01-29 19:22:18

babel_f1sh
Member
Registered: 2023-09-28
Posts: 36

[SOLVED] Customize Authentication Prompt

I recently set up fprint for login and sudo for my laptop. I installed pam-fprint-grosshack along with it, but I don't like the default prompt of "Enter password or Place finger on fingerprint reader." Is there a way I can change this to "Enter authentication" or something similar? Thank you!

Edit: my shell is fish if that's relevant at all

Last edited by babel_f1sh (2024-01-31 01:45:36)

Offline

#2 2024-01-29 21:44:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,034

Offline

#3 2024-01-30 06:16:01

babel_f1sh
Member
Registered: 2023-09-28
Posts: 36

Re: [SOLVED] Customize Authentication Prompt

Thanks! I'm having trouble rebuilding the program though. The commands in the README don't work and the ones given in Meson's docs don't either. I'm fairly new to compiling so I'm not sure what I might be missing.

Offline

#4 2024-01-30 06:32:29

babel_f1sh
Member
Registered: 2023-09-28
Posts: 36

Re: [SOLVED] Customize Authentication Prompt

babel_f1sh wrote:

Thanks! I'm having trouble rebuilding the program though. The commands in the README don't work and the ones given in Meson's docs don't either. I'm fairly new to compiling so I'm not sure what I might be missing.

Nevermind, I figured it out.

Offline

#5 2024-01-30 06:41:47

babel_f1sh
Member
Registered: 2023-09-28
Posts: 36

Re: [SOLVED] Customize Authentication Prompt

I recompiled the package, but how do I find the "correct directory" to move the pam_fprintd_grosshack.so to? I see some .so files in /usr/lib but when I install the package from the AUR it isn't located there.

Offline

#6 2024-01-30 08:49:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,231

Re: [SOLVED] Customize Authentication Prompt

You probably should apply the patch as part of the PKGBUILD you got from the AUR so that all files are properly tracked, but for a stop gap test look at where the AUR package placed the file

pacman -Ql pam-fprint-grosshack

Offline

#7 2024-01-30 16:50:02

babel_f1sh
Member
Registered: 2023-09-28
Posts: 36

Re: [SOLVED] Customize Authentication Prompt

V1del wrote:

You probably should apply the patch as part of the PKGBUILD you got from the AUR so that all files are properly tracked, but for a stop gap test look at where the AUR package placed the file

pacman -Ql pam-fprint-grosshack

I see, so it goes in /usr/lib/security/. Thank you! How would I apply the patch? It seems to work fine by just uninstalling the AUR package and building it from source instead.

Offline

#8 2024-01-30 17:01:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,034

Re: [SOLVED] Customize Authentication Prompt

No, you build the AUR package and add the patch to the PKGBUILD

Offline

#9 2024-01-30 18:00:07

babel_f1sh
Member
Registered: 2023-09-28
Posts: 36

Re: [SOLVED] Customize Authentication Prompt

seth wrote:

No, you build the AUR package and add the patch to the PKGBUILD

I'm not really sure how to do that. Is there a particular reason why this would be a more proper method?

Offline

#10 2024-01-30 18:08:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,034

Re: [SOLVED] Customize Authentication Prompt

You're installing and managing packages w/ the package manager and it will allow proper dependency management as well as later removal, updating etcetc.
All you have to do is to add the name of the patch file to the source array of the PKGBUILD, maybe a secon 'SKIP' to the sha256sums and rebuild the package.

Offline

#11 2024-01-30 19:27:13

babel_f1sh
Member
Registered: 2023-09-28
Posts: 36

Re: [SOLVED] Customize Authentication Prompt

seth wrote:

You're installing and managing packages w/ the package manager and it will allow proper dependency management as well as later removal, updating etcetc.
All you have to do is to add the name of the patch file to the source array of the PKGBUILD, maybe a secon 'SKIP' to the sha256sums and rebuild the package.

That first part makes sense, I struggled with the second though. I tried the guide in the first section here https://wiki.archlinux.org/title/Patching_packages but it didn't apply my patch. I ended up running "makepkg --nobuild," editing the file in the src directory, and then running "makepkg --noextract --install." I'm not sure if this is a proper method but I'm able to remove the package with pacman if need be. The only potential issue I've noticed is there is no output for "whereis pam-fprint-grosshack."

Last edited by babel_f1sh (2024-01-30 19:28:57)

Offline

#12 2024-01-30 20:52:44

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,034

Re: [SOLVED] Customize Authentication Prompt

You can just clone the AUR, add the patch and edit the PKGBUILD and run makepkg as usual.
If you need the sources to generate the patch first, you can or not first run it --nobuild to obtain them (though I think gitlab allows you to create patches using their webinterface)
For clarification:
You're NOT supposed to edit the sources in place but add a patch file to the local sources and reference that in the PKGBUILD.

You're also not getting "whereis pam_unix.so" because whereis doesn't search /usr/lib/security/ - so nothing to worry there.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#13 2024-01-31 01:48:17

babel_f1sh
Member
Registered: 2023-09-28
Posts: 36

Re: [SOLVED] Customize Authentication Prompt

seth wrote:

You can just clone the AUR, add the patch and edit the PKGBUILD and run makepkg as usual.
If you need the sources to generate the patch first, you can or not first run it --nobuild to obtain them (though I think gitlab allows you to create patches using their webinterface)
For clarification:
You're NOT supposed to edit the sources in place but add a patch file to the local sources and reference that in the PKGBUILD.

You're also not getting "whereis pam_unix.so" because whereis doesn't search /usr/lib/security/ - so nothing to worry there.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

I appreciate all your clarification, thanks. I'm having a bit of a hard time wrapping my head entirely around the process for building and patching packages, but I guess that'll come with practice. Are there any guides you'd recommend? I'll be sure to look through what the wiki has to offer more too.

Offline

#14 2024-01-31 08:27:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,034

Re: [SOLVED] Customize Authentication Prompt

The wiki you linked is the most relevant guide.
If you plan to patch a lot and dynamically, a prepare() routine like in https://gitlab.archlinux.org/archlinux/ … =heads#L67 will come handy.

Offline

Board footer

Powered by FluxBB