1
0
mirror of https://github.com/tommytran732/macOS-Setup-Script synced 2024-11-24 18:51:34 -05:00

Update Home protection command

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-11-13 13:22:32 -07:00
parent bc80cf463c
commit a05f5d2af6
No known key found for this signature in database
GPG Key ID: D30DEC268D3FEB17
2 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,9 @@
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
for user in $(ls /Users | grep -v 'Shared'); do
sudo chmod 700 /Users/$user
done
# Verify SSH Fingerprints
echo "VerifyHostKeyDNS yes" | sudo tee /etc/ssh/ssh_config.d/10-custom.conf

View File

@ -4,7 +4,9 @@
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/tomster
for user in $(ls /Users | grep -v 'Shared'); do
sudo chmod 700 /Users/$user
done
# Verify SSH Fingerprints
echo "VerifyHostKeyDNS yes" | sudo tee /etc/ssh/ssh_config.d/10-custom.conf