Removing Users from OSX Login Screen
I have several user accounts on my mac that are intended for a specific purpose. For example, I have a user only for my installation of homebrew. One thing that bothered me about this approach is that it clutters up the login screen with users I don't intend to use often. It turns out that there's a command to clean this up:

sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add homebrew joe userBasically, any of the users that you list after the -array-add option will be hidden from the login screen. You can always still login to the account by choosing the Other option. You then need to provide the user name for that account.

Also, note that this is the actual user name for the account, not the display name. In the image, you can see that the user is called "Administrator" but the actual account name is "administrator". You want the account name for this command.
If you change your mind and want the old settings back:
If you change your mind and want the old settings back:
sudo defaults delete /Library/Preferences/com.apple.loginwindow HiddenUsersList
Comments
Post a Comment