Giter Club home page Giter Club logo

pam-touchid's Introduction

PAM TouchID

A PAM plugin for authenticating using biometric information (touch ID) written in Swift.

Demo

Installation

  1. $ sudo make install
  2. Edit /etc/pam.d/sudo to include as the first line: auth sufficient pam_touchid.so "reason=execute a command as root"

Note that you might have other auth, don't remove them.

pam-touchid's People

Contributors

david50407 avatar keith avatar reflejo avatar reitermarkus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pam-touchid's Issues

make install fails

Hello!
FYI: Your manual from 'installation' doesn't work out of the box.

sviridkin@mbp:/tmp$ git clone https://github.com/Reflejo/pam-touchID
Cloning into 'pam-touchID'...
remote: Counting objects: 24, done.
remote: Total 24 (delta 0), reused 0 (delta 0), pack-reused 24
Unpacking objects: 100% (24/24), done.
✓ @ Thu Jul  6 21:03:33 MSK 2017
sviridkin@mbp:/tmp$ cd pam-touchID/
✓ @ Thu Jul  6 21:03:40 MSK 2017
sviridkin@mbp:/tmp/pam-touchID$ sudo make install
Password:
/Library/Developer/CommandLineTools/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc touchid-pam-extension.swift -o pam_touchid.so -target x86_64-apple-macosx10.12.3 -emit-library -sdk /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -static-stdlib
make: /Library/Developer/CommandLineTools/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc: No such file or directory
make: *** [all] Error 1
✗: 2 @ Thu Jul  6 21:03:56 MSK 2017

Doesn't work on macOS Catalina

I'm not sure if this happens because of Catalina...

The following error appears if I try to launch any command with sudo:

sudo: unable to initialize PAM: No such file or directory

Where does 0x3f0 come from ?

I cannot find any value 0x3f0 in the header file.

kLAPolicyDeviceOwnerAuthentication == 2
kLAPolicyDeviceOwnerAuthenticationWithBiometrics == 1

Where was this reverse engineered from ?

Support for apple silicon

I'm running into some build issues on my M1 MacBook Air. After following the normal install process, I'm now unable to use sudo...
Screen Shot 2020-12-26 at 9 14 14 PM
Once I've resolved that issue, I'd love to rerun the build script to get the console output to help further troubleshooting.

edit: resolved by enabling the root user and removing the touchid line.

Here's the output of sudo make install

objc[1915]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x2046978f0) and ?? (0x1163582b8). One of the two will be used. Which one is undefined.
objc[1915]: Class AMSupportURLSession is implemented in both ?? (0x204697940) and ?? (0x116358308). One of the two will be used. Which one is undefined.
objc[1916]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x2046978f0) and ?? (0x114a842b8). One of the two will be used. Which one is undefined.
objc[1916]: Class AMSupportURLSession is implemented in both ?? (0x204697940) and ?? (0x114a84308). One of the two will be used. Which one is undefined.
mkdir -p /usr/local/lib/pam
rm -f /usr/local/lib/pam/pam_touchid.so.2
cp pam_touchid.so /usr/local/lib/pam/pam_touchid.so.2
chmod 444 /usr/local/lib/pam/pam_touchid.so.2
sudo chown root:wheel /usr/local/lib/pam/pam_touchid.so.2```

Upgrading macOS may in some cases fry sudo

It seems that something happened on 10.12.4 and broke things. I'm not sure what exactly changed, but I was suddenly unable to use sudo, it would only give the following error message:

sudo: unable to initialize pam: no such file or directory

The library however was still there at its usual location.

I had to enter single user mode and remove the pam_touchid line from /etc/pam.d/sudo to recover sudo access.

Is 2ba1922 perhaps an attempt to resolve this issue?

Doesn't work on macOS Big Sur

Doesn't work on macOS Big Sur even after changing the target to 10.16

sudo: unable to initialize PAM: Operation not permitted

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.