{"id":7676,"date":"2018-04-20T17:16:43","date_gmt":"2018-04-20T17:16:43","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=7676"},"modified":"2020-05-23T15:31:37","modified_gmt":"2020-05-23T15:31:37","slug":"hide-user-list-ubuntu-18-04-login-screen","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2018\/04\/hide-user-list-ubuntu-18-04-login-screen\/","title":{"rendered":"[Quick Tip] Hide User List in Ubuntu 18.04 Login Screen"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/03\/classic-gnome-icon.png\" alt=\"gnome shell\" width=\"245\" height=\"250\" class=\"aligncenter size-full wp-image-5741\" \/><\/p>\n<p>The Gnome login screen normally shows a list of available users to log in as. For those who want to disable showing the user list, and manually type a username to login with, below I will show you how.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/04\/hide-userlist-600x352.jpg\" alt=\"\" width=\"600\" height=\"352\" class=\"aligncenter size-large wp-image-7677\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/04\/hide-userlist-600x352.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/04\/hide-userlist-450x264.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/04\/hide-userlist-768x451.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/04\/hide-userlist.jpg 858w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Open terminal by pressing Ctrl+Alt+T on keyboard, when it opens, run following commands one by one:<\/p>\n<p><b>1.<\/b> Run command to get access to root:<\/p>\n<pre style=\"border:none;\">sudo -i<\/pre>\n<p><i>Type in your password (no visual feedback while typing) when it prompts and hit Enter.<\/i><\/p>\n<p><b>2.<\/b> In the terminal, run command to allow gdm to make connections to the X server:<\/p>\n<pre style=\"border:none;\">xhost +SI:localuser:gdm<\/pre>\n<p><b>3.<\/b> Then switch to user <code>gdm<\/code>, which is required to run gsettings to configure gdm settings.<\/p>\n<pre style=\"border:none;\">su gdm -l -s \/bin\/bash<\/pre>\n<p><b>Update May 2020:<\/b> For Ubuntu 20.04, you may need to run one more command:<\/p>\n<pre style=\"border:None;\">export DISPLAY=:0<\/pre>\n<p><b>4.<\/b> Finally hide user list from login screen using Gsettings:<\/p>\n<pre style=\"border:none;\">gsettings set org.gnome.login-screen disable-user-list true<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/04\/hide-user-list-600x106.jpg\" alt=\"\" width=\"600\" height=\"106\" class=\"aligncenter size-large wp-image-7678\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/04\/hide-user-list-600x106.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/04\/hide-user-list-450x80.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/04\/hide-user-list.jpg 741w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>After that, restart your computer and enjoy!<\/p>\n<h4>How to Restore<\/h4>\n<p>To restore the change, open terminal and <b>re-do<\/b> previous steps, except running the last command with:<\/p>\n<pre style=\"border:none;\">gsettings set org.gnome.login-screen disable-user-list false<\/pre>","protected":false},"excerpt":{"rendered":"<p>The Gnome login screen normally shows a list of available users to log in as. For those who want to disable showing the user list, and manually type a username to login with, below I will show you how. Open terminal by pressing Ctrl+Alt+T on keyboard, when it opens, run following commands one by one: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1535,1527],"class_list":["post-7676","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-hide-user-list","tag-ubuntu-18-04"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/7676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=7676"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/7676\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=7676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=7676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=7676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}