artginzburg / sudo-touchid

 Permanent TouchID support 👆 for `sudo`.
https://git.io/sudotouchid
Eclipse Public License 2.0
523 stars 13 forks source link

TouchID not prompted when running sudo in tmux #6

Closed cedrickring closed 2 years ago

cedrickring commented 2 years ago

As the title says, inside tmux I'm still prompted with Password: instead of having the TouchID window show up.

artginzburg commented 2 years ago

Sounds logical in terms of security. Anyway, I tried some things and got tmux to stop asking for sudo password by running sudo tmux instead of just tmux initially.

That actually displays the TouchID window. The downside is that anything that is run inside a sudo tmux session has super-user access without any prompt. Not so good, but someone (like myself) may find it useful.

orgcontrib commented 2 years ago

You may want to have a look at pam_reattach plugin.