Skip to content
Nosce Te Ipsum
  • Home
  • About me
  • My COETAIL Blogs
    • Course 1
    • Course 2
    • Course 3
    • Course 4
  • Testimonials
    • Professional
    • Personal
Site Search

How to hide a user in Mac OS X

  • April 2, 2016
  • by Muhammad
Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Pin on Pinterest
Pinterest
Share on Reddit
Reddit
Email this to someone
email
Share on StumbleUpon
StumbleUpon
Digg this
Digg

Hide a user account in OS X Yosemite

You can prevent a user account from appearing in the login window in OS X Yosemite by using these steps:.

1. Log in as an admin user.

2. Use this Terminal command, substituting the short account name name of the user you wish to hide for “hiddenuser”:

sudo dscl . create /Users/hiddenuser IsHidden 1

If you later want to show the hidden user, set the user’s IsHidden attribute to 0 like this:

sudo dscl . create /Users/hiddenuser IsHidden 0

You can optionally delete the IsHidden attribute instead of setting it to 0.

Additional Options

You can also move the hidden user’s home directory to a place not visible from the Finder, and remove the hidden user’s Public Folder share point.

The following command moves the home directory of “hiddenuser” to /var, a hidden directory:

sudo mv /Users/hiddenuser /var/hiddenuser

The following command updates the user record of “hiddenuser” with the new home directory path in /var:

sudo dscl . -create /Users/hiddenuser NFSHomeDirectory /var/hiddenuser

The following command removes the Public Folder share point for the user with the long name “Hidden User”:

sudo dscl . -delete "/SharePoints/Hidden User's Public Folder"

Hide a user account in earlier versions of OS X

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

Ref URL: https://support.apple.com/en-gb/HT203998

Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Pin on Pinterest
Pinterest
Share on Reddit
Reddit
Email this to someone
email
Share on StumbleUpon
StumbleUpon
Digg this
Digg
Recovering Excel Sheet password
Installing RD9700 chipset based USB ethernet adapter to Mac OS ver. Yosemite and above
Muhammad

Related articles

Raspberry PI as temperature and…
Dynamic DNS client setup for…
Install Nginx, MySQL and PHP…
Autostart a terminal app on…
Attaching an external storage with…
Setting up L2TP/IPSEC server using…
(c) Raspberry Pi
Starting with Raspberry Pi
Using GeoIP database to identify…
Designing Technology Infrastructure for Transformational…
The sad state of human…

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Follow Me!

Follow Me On TwitterFollow Me On LinkedInFollow Me On PinterestFollow Me On About.meFollow Me On Wordpress
May 2025
M T W T F S S
« Oct    
 1234
567891011
12131415161718
19202122232425
262728293031  

2009 2010 2011 Amelie apache beijing birthday clearos crèpes debian december 2009 dubai email february firewall guide holidays ill install internet kuala lumpur linux list mac maheen mobile october 2009 outlook Pakistan raspberry raspberry pi router search Sharepoint smtp snow spring ubuntu unix VLAN VPN windows 7 winter xian Zimbra

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

Categories

Licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Theme by Colorlib Powered by WordPress
  • Home
  • About me
  • My COETAIL Blogs
  • Testimonials