From 80f63bc026b98184492cfdecdc7793b5f92f9346 Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 2 Jun 2023 19:41:21 -0700 Subject: [PATCH] Hide administrator user Signed-off-by: Tommy --- administrator.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/administrator.sh b/administrator.sh index 69bd7e4..f41c696 100644 --- a/administrator.sh +++ b/administrator.sh @@ -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