Skip to content

Commit

Permalink
enable_touchid_sudo: Add comments to install
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmachos committed Sep 27, 2023
1 parent c30b770 commit b76e84a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bittersweet
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b76e84a

Please sign in to comment.