From ecd6761780bbada9eb7d262a5ddb33db3d0c3362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asger=20Geel=20Weirs=C3=B8e?= Date: Wed, 6 May 2026 16:09:15 +0200 Subject: [PATCH] docs: clarify PAM config is a file entry; add uninstall instructions --- Formula/ahfail.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Formula/ahfail.rb b/Formula/ahfail.rb index 5c74455..4139165 100644 --- a/Formula/ahfail.rb +++ b/Formula/ahfail.rb @@ -32,12 +32,15 @@ class Ahfail < Formula "/etc/pam.d/screensaver" end <<~EOS - Add this line to #{pam_file} after the existing auth entries (requires sudo): + To activate, add this line to #{pam_file} after the existing auth entries + (requires sudo — this is a config file entry, not a shell command): auth optional #{lib}/ahfail/libahfail_pam.so - After upgrading ahfail, re-run `brew install ahfail` and update the path - in #{pam_file} if it changed. + To uninstall cleanly, remove that line before running `brew uninstall ahfail`: + + sudo sed -i '' '/ahfail/d' #{pam_file} + brew uninstall ahfail EOS end