From a05f5d2af6d07b412fd95d1cb7a588db857789a9 Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 13 Nov 2023 13:22:32 -0700 Subject: [PATCH] Update Home protection command Signed-off-by: Tommy --- administrator.sh | 4 +++- development.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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