warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.21k stars 334 forks source link

Support touchid and Fingerprint support for passwords #458

Open elviskahoro opened 2 years ago

elviskahoro commented 2 years ago

Describe the solution you'd like?

Support Touch ID Authentication
https://github.com/artginzburg/sudo-touchid
From Leo in Discord Chat #feature-requests 2021.11.23

Is your feature request related to a problem? Please describe.

No response

Additional context

No response

Bryce-MW commented 2 years ago

Just in case this helps anyone who wants to do this sooner or the Warp devs with figuring out how to do it:

This is actually already possible. You can modify /etc/pam.d/sudo and add a line just below the comment auth sufficient pam_tid.so. Your computer will ask if Warp is allowed to administer the computer. Say yes and now sudo will use touch id!

The issue with this is that software updates seem to like to overwrite this file and it would be nice to not have to edit a normally protected system file so maybe there’s something extra Warp can do to help. But it’s good to know that there is an existing method.

Screen Shot 2021-11-24 at 3 10 35 PM
verheyenkoen commented 4 months ago

I also always updated the /etc/pam.d/sudo file after each Mac update to fix this for iTerm2 but Warp (v0.2024.01.30.16.52.stable_01) still asks for my password for sudo commands and after that I get to use touch ID.

image

When I remove that "pam_tid.so" line again, I only need to enter my password.

dedalozzo commented 1 week ago

This would be super cool to have.