Skip to content

Commit 4ca9d1e

Browse files
committed
[macOS] Add support for PAM Touch ID and Watch ID
1 parent 36cace0 commit 4ca9d1e

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

CHECKLIST.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,10 @@ Then, in no particular order:
6464

6565
- Flux > Preferences > Bedtime > 1200K (max).
6666

67+
- Edit `/etc/pam.d/sudo` to include `auth sufficient pam_watchid.so
68+
"reason=execute a command as root"` as the first line and `auth sufficient
69+
pam_touchid.so "reason=execute a command as root"` as the second to enable
70+
[PAM Watch ID](https://github.com/biscuitehh/pam-watchid) and [PAM Touch
71+
ID](https://github.com/Reflejo/pam-touchID).
72+
6773
Some of these are preferably not automated, others weren't possible AFAICT.

run/after/z_macos_setup.sh

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,26 @@
22
set -o errexit -o nounset
33

44
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
5+
REPOS_DIR="$(mktemp -d -t macos_setup_repos)"
56

6-
if [ ! -d "$HOME/iCloud" ]; then
7-
echo "Symlinking iCloud."
7+
trap 'rm -rf "$REPOS_DIR"' EXIT
8+
(
9+
echo "Installing PAM Touch ID..."
10+
cd "$REPOS_DIR"
811
set -x
9-
ln -s "$HOME/Library/Mobile Documents/com~apple~CloudDocs/" "$HOME/iCloud"
12+
git clone https://github.com/Reflejo/pam-touchID.git
13+
cd pam-touchID
14+
sudo make install
1015
set +x
11-
else
12-
echo "iCloud directory already linked."
13-
fi
16+
17+
cd -
18+
echo "Installing PAM Watch ID..."
19+
set -x
20+
git clone https://github.com/biscuitehh/pam-watchid.git
21+
cd pam-watchid
22+
sudo make install
23+
set +x
24+
)
1425

1526
# Use a modified version of the Zenburn theme by default in Terminal.app
1627
# Originally taken from https://github.com/bdesham/zenburn-terminal

0 commit comments

Comments
 (0)