How to temporarily lock or disable a user account

Hi, I need help on the easiest way to do the following:
I want to temporarily disable one of the user accounts on my Mac so it cannot
be used.
I do not want to delete the account, just block it

Thanks

iMac 20, Mac OS X (10.4.11), 2.16 GHz Intel Core 2 Duo, 2.5 GB

Posted on Apr 28, 2009 1:01 PM

Reply
10 replies

May 2, 2009 6:41 PM in response to jrregaldie

Aha! Now that's the kind of info I was looking for.

To hide the user with short user name "jim" from the login window, first log in to an admin account, launch Terminal, and paste in these two lines:
sudo defaults write /Library/Preferences/com.apple.loginwindow \
HiddenUsersList -array-add jim




To unhide the account, enter this:

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

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to temporarily lock or disable a user account

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.