mirror of
https://github.com/tommytran732/macOS-Setup-Script
synced 2024-11-22 01:41:34 -05:00
Protect home
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
2873434ff9
commit
bc80cf463c
@ -3,6 +3,9 @@
|
|||||||
# Comment this line out if you don't have Touch ID
|
# 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
|
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
|
# Verify SSH Fingerprints
|
||||||
echo "VerifyHostKeyDNS yes" | sudo tee /etc/ssh/ssh_config.d/10-custom.conf
|
echo "VerifyHostKeyDNS yes" | sudo tee /etc/ssh/ssh_config.d/10-custom.conf
|
||||||
sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
# Comment this line out if you don't have Touch ID
|
# 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
|
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
|
||||||
|
|
||||||
# Verify SSH Fingerprints
|
# Verify SSH Fingerprints
|
||||||
echo "VerifyHostKeyDNS yes" | sudo tee /etc/ssh/ssh_config.d/10-custom.conf
|
echo "VerifyHostKeyDNS yes" | sudo tee /etc/ssh/ssh_config.d/10-custom.conf
|
||||||
sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user