Tip | Hide your User Account from the Login Window

Many people, just like me, share their computer with different people…

In my case, I share mine with my wife and children, but could be my brother, mom, dad and so on…

If for any reason you want to hide your User Account from the Login Window, there is a simple way to make this…

You only have to go at System Preferences > Users & Groups, click in Login Options and select Name and Password

Name and Password

After a reboot, the login Window will look like the example below…

Text Login

You only have to insert your Username and Password to login…

All users will be affected by this change and will have to insert Username and Password at every login… Now, if you want an mixture between Graphical and Text Login…

ATTENTION: DO NOT make this to an Administrator account if you have only one account with Administrator rights.

1. Run the following command at Terminal.app (replace username for the desired User Name);

# sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add username

NOTE: You can add many users at the same time if needed, you only have to change the command above by adding all usernames you want to hide after a blank space, for example, username1 username2 username3 username4 and so on…

2. Reboot

After you reach again the Login Window you will notice that the target account was hidden…

3. Login to an Administrator account and run the following command;

# sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList

NOTE: The command above will overwrite the previous Hidden User List and create an empty, allowing the previously hidden user to login again…

4. Reboot

After you reach again the Login Window you will have Graphical Login (Guest User at the example below) + Text Login (will appear after you click Other…)…

Graphical + Text Login

That’s it…

And if you want to revert every change made and have the Login Window at it’s defaults, run the following command and reboot;

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

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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