I have a Mac running macOS Catalina that has two users accounts, 'foo' and 'admin'. Both appear on the login screen. I'd like to hide the 'admin' account from the login screen.
The following tricks that used to work on earlier versions of macOS aren't working anymore:
-
sudo dscl . create /Users/admin IsHidden 1
-
sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add admin
Best Answer
The trick still works in Catalina:
Open the Terminal and enter:
If you want to remove the login screen's "Others..." option, which appears after disabling the admin account, enter:
To reverse the hidden admin user and enable "Others..." again enter:
Tested in a Catalina VM. This might not work for T2-equipped Macs and definitely not if FileVault is enabled.
To remove the user admin from the login screen on a filevaulted Mac you can simply remove this account from the FileVault enabled users:
Open the Terminal and enter:
List all users to be sure that user admin and foo are FV enabled:
After removing admin only one user is left to unlock the system volume!
To remove the user admin from the intermediate login screen (i.e. volume still unlocked and after logging out as foo)
Use at your own risk! Tested in a Catalina VM. This might not work for T2-equipped Macs.