Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A simpler method for using Touch ID with sudo #27

Closed
raylas opened this issue Nov 17, 2017 · 8 comments
Closed

A simpler method for using Touch ID with sudo #27

raylas opened this issue Nov 17, 2017 · 8 comments

Comments

@raylas
Copy link

raylas commented Nov 17, 2017

On Touch ID enabled MacBook Pros add the following line to the top of /etc/pam.d/sudo:

auth sufficient pam_tid.so

Not sure how new/recent this is capability is, but I thought it might be of interest to this repo.

@serverwentdown
Copy link

serverwentdown commented Nov 20, 2017

wow gonna switch to this tonight.

@serverwentdown
Copy link

wow yes it does the trick! amazing.

@tomlobato
Copy link

amazing!

the next level is to have remote ssh touch id support :)
ssh me@mysrv
me@mysrv $ sudo su <-- touch
root@mysrv #

@noomorph
Copy link

It is a clear winner method. Kudos to @raylas !

@raylas
Copy link
Author

raylas commented Nov 29, 2017

Glad to shed some light on it. I've used sudo-touchid for a while now and I'm still thankful for the work this repo has done!

Now to tackle Touch ID for ssh private key auth like @tomlobato mentioned...

@raylas raylas closed this as completed Nov 29, 2017
@raylas
Copy link
Author

raylas commented Dec 6, 2017

@tomlobato found this repo/agent that allows you to use Touch ID and a key stored in the secure enclave to authenticate to SSH servers:

https://github.com/ntrippar/sekey

@tomlobato
Copy link

Awesome. Tks @raylas!

@hu13
Copy link

hu13 commented Oct 24, 2018

is there a way to make it work for su?

auth sufficient pam_tid.so doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants