diff --git a/administrator.sh b/administrator.sh index ade6514..03c46fc 100644 --- a/administrator.sh +++ b/administrator.sh @@ -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 diff --git a/development.sh b/development.sh index e0c87f9..45dc351 100644 --- a/development.sh +++ b/development.sh @@ -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