inickt / pam_wtid Goto Github PK
View Code? Open in Web Editor NEWPatch for Apple's pam_tid PAM Touch ID module to add sudo watch authentication
Patch for Apple's pam_tid PAM Touch ID module to add sudo watch authentication
python3 patch.py /usr/lib/pam/pam_tid.so.2 pam_wtid.so
Opening /usr/lib/pam/pam_tid.so.2
Error dissasembling binary:
2022-06-20 22:47:13.012 xcodebuild[77066:19841223] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-06-20 22:47:13.012 xcodebuild[77066:19841223] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: error: unknown argument '-cho'
make: *** [pam_wtid.so] Error 1
XCode is Version 13.4.1 (13F100) (in case that matters)
Hi!
Trying to setup pam_witd
on macOS 13.0 Ventura and getting an error when trying to use sudo after:
❯ make enable
sudo mkdir -p /usr/local/lib/pam
sudo install -b -o root -g wheel -m 444 pam_wtid.so /usr/local/lib/pam/pam_wtid.so.2
sudo sed -E -i ".bak" "1s/^(#.*)$/\1\nauth sufficient pam_wtid.so/" "/etc/pam.d/sudo"
❯ sudo vim /etc/pam.d/sudo
sudo: unable to initialize PAM: No such file or directory
This what the sudo
file look like:
❯ cat /etc/pam.d/sudo
# sudo: auth account password session
auth sufficient pam_wtid.so
auth sufficient pam_smartcard.so
auth required pam_opendirectory.so
account required pam_permit.so
password required pam_deny.so
session required pam_permit.so
Obviously make disable
fails because of the above sudo
error.
I can revert by booting into recovery (M1 here).
Some info:
❯ sw_vers
ProductName: macOS
ProductVersion: 13.0
BuildVersion: 22A380
❯ xcode-select -p
/Applications/Xcode-14.1.0.app/Contents/Developer
Let me know if you need more info.
Edit: silly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.