Ugly topic but in some cases needed: hiding user-account in a login window dialog

In the Windows world i usualy realize that using TweakUI …. a small tool by Microsoft to offer easy access to some hidden Preferences / Settings out of the PowerToys Series

Question:

But how do you realize that with Mac OS X ?

Well i reached the point today at work, so lets share the solution i found in the web.

Short Answer:

The login dialog preferences in 10.4 and 10.5 supports a setting called HiddenUserList

Long Answer:

Note: accountX stand for users shortname

To hide a single user from the login window enter the following in Terminal.app

sudo defaults write /Library/Preferences/com.apple.loginwindow \
HiddenUsersList -array-add account1

To hide several users enter the following:

sudo defaults write /Library/Preferences/com.apple.loginwindow \
HiddenUsersList -array-add account1 account2

To unhide all users enter the following:

sudo defaults delete /Library/Preferences/com.apple.loginwindow \
HiddenUsersList

Links:

Share on Social Sites:
  • Digg
  • del.icio.us
  • Google
  • Technorati
  • Yigg
  • MisterWong
  • StumbleUpon

Similar Posts:
Leave a Reply