Skip to content

Instantly share code, notes, and snippets.

@davidchase
Last active December 16, 2015 17:19
Show Gist options
  • Save davidchase/5469573 to your computer and use it in GitHub Desktop.
Save davidchase/5469573 to your computer and use it in GitHub Desktop.
Hide the logins of users on the mac, separate the users by spaces. the data array is stored in a plist file called /Library/Preferences/com.apple.loginwindow.plist

Hide Users

This one liner hides users on a Mac OS X v10.4 and later.

Just seperate each user you would like to hide from the login menu with a space and it will store it to an array inside of loginwindow.plist file.

The key is HiddenUserList along with the array values that you inputed of the users.

# quick one-liner
sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add user1 user2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment