From 87e7ac8f63ede78b8c551bdfef01c073be6c107f Mon Sep 17 00:00:00 2001 From: himkt Date: Mon, 30 Dec 2024 21:40:03 +0900 Subject: [PATCH 1/2] misc(darwin): allow users to sudo with touchID --- Makefile | 5 ++++- darwin/bin/setup.sh | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) mode change 100644 => 100755 darwin/bin/setup.sh diff --git a/Makefile b/Makefile index 7f902f7e..f1e6aa3a 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NOCOLOR := $(shell tput sgr0) .PHONY: \ all docs brew \ - base cli gui \ + base cli darwin gui \ cargo git \ nvim tmux uv zsh @@ -34,6 +34,9 @@ base: cargo git tmux zsh cargo: cargo_clean $(PWD)/cargo/bin/setup.sh +darwin: + $(PWD)/darwin/bin/setup.sh + ghostty: ghostty_clean $(PWD)/ghostty/bin/setup.sh diff --git a/darwin/bin/setup.sh b/darwin/bin/setup.sh old mode 100644 new mode 100755 index 13f1d39d..1f42c64d --- a/darwin/bin/setup.sh +++ b/darwin/bin/setup.sh @@ -35,3 +35,7 @@ killall Dock # # guest login = false # + +# pam +sudo rm -rf /etc/pam.d/sudo_local +cat /etc/pam.d/sudo_local.template | sed -e 's/#auth/auth/g' | sudo tee /etc/pam.d/sudo_local >/dev/null From b162bf8eaaf8d7381bd16dda2c0a485b543b6af9 Mon Sep 17 00:00:00 2001 From: himkt Date: Mon, 30 Dec 2024 21:41:50 +0900 Subject: [PATCH 2/2] misc(darwin): newlines --- darwin/bin/setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/darwin/bin/setup.sh b/darwin/bin/setup.sh index 1f42c64d..a57c224c 100755 --- a/darwin/bin/setup.sh +++ b/darwin/bin/setup.sh @@ -38,4 +38,6 @@ killall Dock # pam sudo rm -rf /etc/pam.d/sudo_local -cat /etc/pam.d/sudo_local.template | sed -e 's/#auth/auth/g' | sudo tee /etc/pam.d/sudo_local >/dev/null +cat /etc/pam.d/sudo_local.template \ + | sed -e 's/#auth/auth/g' \ + | sudo tee /etc/pam.d/sudo_local >/dev/null