question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@local + sudo unusable when using PAM fingerprint support in fedora 34

See original GitHub issue

Describe the bug

Fedora 34 sets up PAM with support for fingerprint support in PAM. That means I can put my fingerprint on the reader and sudo will let me through. Unfortunate, this means that every pyinfra sudo call will ask for a fingerprint which has to time out to finally let the normal password (Which pyinfra supplies in a env variable) take over.

To Reproduce

Laptop with fingerprint support, setup to let sudo be authenticated by the fingerprint (default on fedora 34). Add a ´dnf.packages` task with like 10+ packages -> there is one sudo call for each package, all of them waiting for the fingerprint timeout 😦

Expected behavior

I will only get asked once for my password.

I suspect that this isn’t easily solveable by pyinfra (i also saw a google result for the same thing in ansible) 😦 but I wonder if it would be possible to use a (cached) pty for all calls so that sudo itself caches credentials?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jankatinscommented, Aug 29, 2021

Also reported as a feature request to sudo: https://github.com/sudo-project/sudo/issues/112

0reactions
Fizzadarcommented, Nov 4, 2022

Shifting this to a documentation issue now sudo has a fix for this, need to make sure this is well highlighted alongside sudo documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable fingerprint request for sudo command on ...
I've set up fingerprint login. And now it's asking for fingerprint event on sudo command. It becomes unusable in case of closed lid....
Read more >
Fingerprint scanner compatibility with linux (ubuntu, fedora, etc)
Hi there, I'm just wondering if the fingerprint scanner has been tested to be compatible with linux. Fingerprint scanners have historically ...
Read more >
sudo doesn't use fingerprint reader as expected ("like gdm")
I will try to test with Fedora 24 once it's GA. Description of problem: When a user with a registered fingerprint attempts to...
Read more >
Why does sudo command take long to execute? - Server Fault
Now every time I execute a command using sudo , it pauses a noticeable amount of time before actually performing the task (~10...
Read more >
Security Guide - Jeff's Home Page
The Fedora Security Guide is designed to assist users of Fedora in learning ... with requests, a denial of service attack can render...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found