1
0
mirror of https://github.com/tommytran732/macOS-Setup-Script synced 2024-11-09 04:11:33 -05:00

Hide administrator user

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-06-02 19:41:21 -07:00 committed by GitHub
parent ae75b13d87
commit 80f63bc026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,3 +6,7 @@ awk 'NR==2 {print "auth sufficient pam_tid.so"} 1' /etc/pam.d/sudo | s
# Verify SSH Fingerprints
echo "VerifyHostKeyDNS yes" | sudo tee /etc/ssh/ssh_config.d/10-custom.conf
sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
# Hide the administrator user
sudo dscl . create /Users/administrator IsHidden 1
sudo chflags hidden /Users/administrator