Hide users from the login window via prefs

In Mac OS X Tiger, the Login Window will now show most users, even if the UID is below 500, unless the account is UID 0 (root) or user whose default shell is set to /dev/null.

Tiger’s login window preferences now supports a new setting called HiddenUsersList, which is an array of one or more user’s short account name. To hide a list of accounts from the Login Window, run the following command:

# defaults write /Library/Preferences/com.apple.loginwindow 
  HiddenUsersList -array-add account1 account2 account3 ...

where account1, account2, account3, … are the short user names for the accounts you want to hide. This would add additional names to any that might already exist.

To unhide all the names you may have previously hidden, run:

# defaults delete /Library/Preferences/com.apple.loginwindow 
  HiddenUsersList

As always, make a backup of any preference file you might change so you can move back to it.

Advertisements

One thought on “Hide users from the login window via prefs

  1. Undeniably consider that which you said. Your favorite reason appeared to be at the web the easiest thing to take note of. I say to you, I certainly get irked whilst other folks think about worries that they just don’t understand about. You managed to hit the nail upon the highest as neatly as defined out the whole thing without having side effect , other folks could take a signal. Will likely be again to get more. Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s