https://github.com/leonrinkel/pamtouch
Unlock your Mac by entering a PIN on the touchpad.
https://github.com/leonrinkel/pamtouch
mac pam pin touch
Last synced: 3 months ago
JSON representation
Unlock your Mac by entering a PIN on the touchpad.
- Host: GitHub
- URL: https://github.com/leonrinkel/pamtouch
- Owner: leonrinkel
- Created: 2019-04-28T18:51:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-28T20:58:34.000Z (over 6 years ago)
- Last Synced: 2025-02-26T17:48:31.505Z (7 months ago)
- Topics: mac, pam, pin, touch
- Language: C
- Homepage:
- Size: 2.84 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pamtouch 🔢
===========Unlock your Mac by entering a PIN on the touchpad. You may use this module to extend or replace the default password login. This is just a proof of concept and probably lacks security.

The touchpad is divided into a 3x3 grid which holds the digits from 1 to 9. The PIN was 1612 in this case. You don't need to actually click, just touch the pad.
## Build
Just run `make`.
## Installation
Place `pamtouch.so` somewhere (e.g. `/usr/local/lib/security/`) and add a line for it in your pam configuration. There are multiple files for different purposes like screensaver or sudo. I was not brave enough to test it with `/etc/pam.d/authorization`.
```
leons-mbp:pamtouch leon$ sudo cat /etc/pam.d/screensaver
# screensaver: auth account
auth optional pam_krb5.so use_first_pass use_kcminit
auth required pam_opendirectory.so use_first_pass nullok
auth required /usr/local/lib/security/pamtouch.so
account required pam_opendirectory.so
account sufficient pam_self.so
account required pam_group.so no_warn group=admin,wheel fail_safe
account required pam_group.so no_warn deny group=admin,wheel ruser fail_safe
```