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:
parent
ae75b13d87
commit
80f63bc026
@ -6,3 +6,7 @@ awk 'NR==2 {print "auth sufficient pam_tid.so"} 1' /etc/pam.d/sudo | s
|
|||||||
# 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
|
||||||
|
|
||||||
|
# Hide the administrator user
|
||||||
|
sudo dscl . create /Users/administrator IsHidden 1
|
||||||
|
sudo chflags hidden /Users/administrator
|
||||||
|
Loading…
Reference in New Issue
Block a user