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:
parent
bc80cf463c
commit
a05f5d2af6
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user