2023-06-02 16:37:07 -04:00
|
|
|
#!/bin/zsh
|
|
|
|
|
2023-11-07 03:42:21 -05:00
|
|
|
# Comment this line out if you don't have Touch ID
|
2023-06-02 16:37:07 -04:00
|
|
|
awk 'NR==2 {print "auth sufficient pam_tid.so"} 1' /etc/pam.d/sudo | sudo tee /etc/pam.d/sudo
|
|
|
|
|
2023-11-11 16:51:43 -05:00
|
|
|
# Protect Home
|
2023-11-13 15:22:32 -05:00
|
|
|
for user in $(ls /Users | grep -v 'Shared'); do
|
|
|
|
sudo chmod 700 /Users/$user
|
|
|
|
done
|
2023-11-11 16:51:43 -05:00
|
|
|
|
2023-06-02 16:37:07 -04:00
|
|
|
# Verify SSH Fingerprints
|
|
|
|
echo "VerifyHostKeyDNS yes" | sudo tee /etc/ssh/ssh_config.d/10-custom.conf
|
|
|
|
sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
2023-06-02 22:41:21 -04:00
|
|
|
|
2023-11-07 03:42:21 -05:00
|
|
|
# Enable Safari debug menu
|
2023-11-11 16:51:43 -05:00
|
|
|
defaults write com.apple.Safari IncludeInternalDebugMenu 1
|