1
0
mirror of https://github.com/tommytran732/macOS-Setup-Script synced 2024-09-19 07:34:42 -04:00
macOS-Setup-Script/administrator.sh
Tommy bc80cf463c
Protect home
Signed-off-by: Tommy <contact@tommytran.io>
2023-11-11 14:51:43 -07:00

14 lines
460 B
Bash

#!/bin/zsh
# Comment this line out if you don't have Touch ID
awk 'NR==2 {print "auth sufficient pam_tid.so"} 1' /etc/pam.d/sudo | sudo tee /etc/pam.d/sudo
# Protect Home
sudo chmod 700 /Users/administrator
# 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
# Enable Safari debug menu
defaults write com.apple.Safari IncludeInternalDebugMenu 1