{"action":"opened","issue":{"url":"https://api.github.com/repos/hamzasood/pam_touchid/issues/2","repository_url":"https://api.github.com/repos/hamzasood/pam_touchid","labels_url":"https://api.github.com/repos/hamzasood/pam_touchid/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hamzasood/pam_touchid/issues/2/comments","events_url":"https://api.github.com/repos/hamzasood/pam_touchid/issues/2/events","html_url":"https://github.com/hamzasood/pam_touchid/issues/2","id":196483846,"number":2,"title":"pam_touchid appears to break sudo over SSH","user":{"login":"modest","id":990299,"avatar_url":"https://avatars.githubusercontent.com/u/990299?v=3","gravatar_id":"","url":"https://api.github.com/users/modest","html_url":"https://github.com/modest","followers_url":"https://api.github.com/users/modest/followers","following_url":"https://api.github.com/users/modest/following{/other_user}","gists_url":"https://api.github.com/users/modest/gists{/gist_id}","starred_url":"https://api.github.com/users/modest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modest/subscriptions","organizations_url":"https://api.github.com/users/modest/orgs","repos_url":"https://api.github.com/users/modest/repos","events_url":"https://api.github.com/users/modest/events{/privacy}","received_events_url":"https://api.github.com/users/modest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-19T18:13:55Z","updated_at":"2016-12-19T18:13:55Z","closed_at":null,"body":"I haven't fully tested this scenario, but at first pass, it seems like `pam_touchid` prevents a remote SSH user from using sudo on a Mac with `pam_touchid` installed.  The GUI prompt appears and never gives up without GUI user input.\r\n\r\nAre there some possible mitigations here?\r\n- Checking the tty being used (does PAM expose this?) and immediately falling back to password authentication if the user is coming from a remote terminal\r\n- or: Adding a timeout so that the Touch ID prompt automatically aborts after 5 seconds, causing a fallback to password authentication."}}
{"actor":{"display_login":"modest"}}