Hide a User Account In Earlier versions of OS X - My Tech Lab

26 Feb 2015

Hide a User Account In Earlier versions of OS X

OS_X_user

There are three ways you can hide a user in versions of OS X earlier than Yosemite.

Set the Login window to display name and password fields

In the Users & Groups preferences pane (Accounts pane in Mac OS X v10.6 and earlier), click Login Options, then select "Display login window as: Name and password".
With this enabled, no user accounts are listed in the Login window.
If changing the Login Window to only display the name and password fields does not meet your needs, then you can use the following steps in this article to hide a user account.


Add users to the HiddenUsersList (advanced)

With Mac OS X v10.4 and later you can hide users from the Login window by adding them to the HiddenUsersList array in the /Library/Preferences/com.apple.loginwindow.plist file. The following command will hide the users "mei" and "anne" from the Login window:

sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add mei anne
 
 
Note: These users will still appear in the Accounts (Mac OS X v10.6 and earlier) or Users & Groups (OS X Lion) pane in System Preferences.

Lower the user's UID and enable the Hide500Users option (advanced)

You can use the advanced steps below to change a user's UID, adjust their home directory permissions and enable the Hide500Users option. An example user account "tom" is used below.
The following sample Terminal command changes the user tom's UID to 401. Note: Check to make sure the new UID is not in use before making this change.

sudo dscl . -create /Users/tom UniqueID 401
 
This command adjusts the permissions of the user's home directory:
sudo chown -R tom /Users/tom/
Enable the Hide500Users option with this command:

sudo defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool YES
 
 
Join our Facebook Page Here

Tags: Android, Tutorials, I.T News, Phone Tips, Reviews, Computer tricks, Security 
 

No comments:

Post a Comment

Let's Hear From You Here
Your Comments, Views and questions are warmly welcome.

Join Us On Facebook