So, what can you do to remove this list of users filling up your login screen? You can create an “Other” option which will hide user accounts from your lock screen. This option will appear in the login screen, from where you can type in the account username and password manually. But first, you’ll need the account name or “username” of the user(s) that you want to hide. Here’s how to get short names of user accounts in OS X:
Open up “System Preferences” from the Apple Menu or by searching for it in Spotlight.
Click on “Users & Groups.”
Click on the lock icon in the bottom left corner. Enter your password if prompted. Once entered, you’ll be allowed to make changes.
Right click on the user(s) you want to hide and click on “Advanced Options.”
You’ll see a field named “Account name”. Copy the account name to store it for hiding the account from the log in screen.
Once you have the account name for the user(s) you want to hide, head over to Terminal and enter in the following command: You might be prompted in to type in your password. Enter in your password to proceed. Replace “user1”, “user2” and so on with the account names of the users you want to hide from the lock screen. If you want to hide only one users, just enter his/her account name instead of “user 1”, and delete the other other “user” links. Like below:
You might be prompted in to type in your password. Enter in your password to proceed.
Once this command has been entered into Terminal, the users that you have specified will no longer show up in the log in screen. Instead, a “Other” option will appear which will let you type in the account username and password to login into it.
To add more users later on to the hidden list, enter in the following command: If you ever feel the need to restore the hidden list of users again, simply enter the following command into terminal:
That’s it.