From b76e84a2a8bee959bdb898e86a4d3bf4d8228c7c Mon Sep 17 00:00:00 2001 From: 0xmachos <0xmachos@gmail.com> Date: Wed, 27 Sep 2023 13:07:49 +0100 Subject: [PATCH] enable_touchid_sudo: Add comments to install --- bittersweet | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bittersweet b/bittersweet index 68810a2..c60ceef 100755 --- a/bittersweet +++ b/bittersweet @@ -565,6 +565,9 @@ function enable_touchid_sudo { get_sudo "to create /etc/pam.d/sudo_local" if sudo install -m 444 -g "wheel" -o root "/dev/null" "/etc/pam.d/sudo_local"; then + # Use install to create the file /etc/pam.d/sudo_local + # Copies from /dev/null which creates an empty file + # Set permissions to read only, group to wheel and owner to root logger -p user.info -s "Created /etc/pam.d/sudo_local" else logger -p user.error -s "Failed to create /etc/pam.d/sudo_local"