{"id":444,"date":"2020-10-24T16:03:44","date_gmt":"2020-10-24T14:03:44","guid":{"rendered":"https:\/\/expanic.at\/wordpress\/2020\/10\/24\/hide-a-user-account-in-the-macos-login-window\/"},"modified":"2021-12-16T08:07:15","modified_gmt":"2021-12-16T07:07:15","slug":"hide-a-user-account-in-the-macos-login-window","status":"publish","type":"post","link":"https:\/\/expanic.at\/wordpress\/2020\/10\/24\/hide-a-user-account-in-the-macos-login-window\/","title":{"rendered":"Hide a user account in the macOS login window"},"content":{"rendered":"\n<p>1. Log in as an admin user.<\/p>\n\n\n\n<p>2. Use this Terminal&nbsp;command. Substitute the short name of the user that you want to hide for &#171;hiddenuser&#187;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo dscl . create \/Users\/hiddenuser IsHidden 1<\/pre>\n\n\n\n<p>The user account is also hidden in System Preferences the next time it&#8217;s opened. This command can&#8217;t be used with the Guest user account.&nbsp;<a href=\"https:\/\/support.apple.com\/guide\/mac-help\/change-users-groups-guest-user-preferences-mh15600\/mac\">Learn how to manage the Guest user account<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Show a hidden user account<\/h2>\n\n\n\n<p>If you want to show the hidden user, set the user\u2019s IsHidden attribute to 0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo dscl . create \/Users\/hiddenuser IsHidden 0<\/pre>\n\n\n\n<p>If you want, you can delete the IsHidden attribute instead.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Hide the home directory and share point<\/h2>\n\n\n\n<p>This command hides the &#171;\/Users\/hiddenuser&#187; home directory:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo chflags hidden \/Users\/<var>hiddenuser<\/var><\/pre>\n\n\n\n<p>You can move the hidden user&#8217;s home directory to a place that&#8217;s not visible from the Finder. And you can remove the hidden user&#8217;s Public Folder share point.<\/p>\n\n\n\n<p>This command moves the home directory of &#171;hiddenuser&#187; to \/var, a hidden directory:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mv \/Users\/hiddenuser \/var\/hiddenuser<\/pre>\n\n\n\n<p>This command updates the user record of &#171;hiddenuser&#187; with the new home directory path in \/var:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo dscl . create \/Users\/hiddenuser NFSHomeDirectory \/var\/hiddenuser<\/pre>\n\n\n\n<p>This command removes the Public Folder share point for the user with the long name &#171;Hidden User\u201d:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo dscl . delete \"\/SharePoints\/Hidden User's Public Folder\"<\/pre>\n\n\n\n<p>Published Date: October 10, 2018<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"post-excerpt\">1. Log in as an admin user. 2. Use this Terminal&nbsp;command. Substitute the short name of the user that you&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16,17,31,18],"tags":[],"class_list":["post-444","post","type-post","status-publish","format-standard","hentry","category-anleitung","category-hacks","category-mac","category-terminal"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/posts\/444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/comments?post=444"}],"version-history":[{"count":1,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/posts\/444\/revisions"}],"predecessor-version":[{"id":713,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/posts\/444\/revisions\/713"}],"wp:attachment":[{"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/media?parent=444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/categories?post=444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/tags?post=444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}