Last active
August 21, 2018 09:56
-
-
Save mikemoate/12c93ef0c250bdd29c2f1e12dd15f56f to your computer and use it in GitHub Desktop.
Hide Countingup administrator account on Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
sudo dscl . create /Users/administrator IsHidden 1 | |
sudo mv /Users/administrator /var/administrator | |
sudo dscl . -create /Users/administrator NFSHomeDirectory /var/administrator | |
sudo dscl . -delete "/SharePoints/Administrator's Public Folder" | |
sudo defaults write /Library/Preferences/com.apple.loginwindow SHOWOTHERUSERS_MANAGED -bool FALSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment