Skip to content

v1.1.2 — lockout-proof PAM hook (sudo_local)

Choose a tag to compare

@HMAKT99 HMAKT99 released this 17 Jul 16:01
· 22 commits to main since this release
fa65ba8

What changed

TouchBridge now installs its sudo hook into /etc/pam.d/sudo_local on macOS Sonoma+ — Apple's sanctioned, unprotected include — instead of editing the SIP-protected /etc/pam.d/sudo.

Why it matters (from #23):

  • No more "Operation not permitted" when activating on protected systems
  • No lockout that needs Recovery Mode — the hook is always removable
  • Survives macOS updates that reset /etc/pam.d/sudo

Older macOS without the sudo_local include falls back to the previous direct-edit behavior. Uninstall (script and Homebrew cask) removes the hook before the module in every path.

Recovery, if you're on an older build and stuck

sudo: unable to initialize PAM → recover without sudo:

osascript -e 'do shell script "rm -f /etc/pam.d/sudo_local" with administrator privileges'

(If the hook was written to the protected /etc/pam.d/sudo by an older version, restore the module instead — see SECURITY.md.)

Install / upgrade

brew update && brew upgrade --cask touchbridge
sudo bash /usr/local/share/touchbridge/patch-pam.sh

Full changelog: CHANGELOG.md