{"id":5793,"date":"2016-04-14T18:02:30","date_gmt":"2016-04-14T18:02:30","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=5793"},"modified":"2016-04-14T18:02:30","modified_gmt":"2016-04-14T18:02:30","slug":"remove-guest-session-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2016\/04\/remove-guest-session-ubuntu-16-04\/","title":{"rendered":"How to Remove Guest Session in Ubuntu 16.04 Login Screen"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/guest-session.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/guest-session.png\" alt=\"Remove Guest Session\" width=\"245\" height=\"250\" class=\"alignleft size-full wp-image-5794\" \/><\/a><\/p>\n<p>This is a quick guide for beginners that shows how to remove \/ disable the Guest account login from Ubuntu 16.04 Unity Greeter.<\/p>\n<p>LightDM configuration files are located in <code>\/usr\/share\/lightdm<\/code> and <code>\/etc\/lightdm<\/code>. Disabling Guest account can be easily done by adding a rule into one of the two directories. And below I made a change in <code>\/etc\/lightdm<\/code>:<\/p>\n<p><b>1.<\/b> Open terminal from Unity Dash, or via <b>Ctrl+Alt+T<\/b> combination key.<\/p>\n<p>When it opens, paste below command and run to create a sub folder:<\/p>\n<pre style=\"border:none;\">sudo mkdir \/etc\/lightdm\/lightdm.conf.d<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/lightdmconf.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/lightdmconf-600x78.jpg\" alt=\"lightdmconf\" width=\"600\" height=\"78\" class=\"aligncenter size-large wp-image-5795\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/lightdmconf-600x78.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/lightdmconf-450x58.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/lightdmconf.jpg 742w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Type in your password <i>(no visual feedback on typing)<\/i> when it asks and hit Enter to continue.<\/p>\n<p><b>2.<\/b> Running below command to create a &#8220;50-no-guest.conf&#8221; file under this folder and write the rule <code>allow-guest=false<\/code>.<\/p>\n<pre style=\"border:none;\">sudo sh -c 'printf \"[SeatDefaults]\\nallow-guest=false\\n\" > \/etc\/lightdm\/lightdm.conf.d\/50-no-guest.conf'<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/allow-guest.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/allow-guest-600x66.jpg\" alt=\"allow-guest\" width=\"600\" height=\"66\" class=\"aligncenter size-large wp-image-5796\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/allow-guest-600x66.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/allow-guest-450x49.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/allow-guest.jpg 733w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Now restart your computer and the Guest session disappeared.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/guest-session-removed.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/guest-session-removed-600x392.jpg\" alt=\"Guest Session Removed\" width=\"600\" height=\"392\" class=\"aligncenter size-large wp-image-5797\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/guest-session-removed-600x392.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/guest-session-removed-450x294.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/04\/guest-session-removed.jpg 1020w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>3.<\/b> To revert the changes, just remove the configuration file via command:<\/p>\n<pre style=\"border:None;\">sudo rm \/etc\/lightdm\/lightdm.conf.d\/50-no-guest.conf<\/pre>\n<p>That&#8217;s it. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>This is a quick guide for beginners that shows how to remove \/ disable the Guest account login from Ubuntu 16.04 Unity Greeter. LightDM configuration files are located in \/usr\/share\/lightdm and \/etc\/lightdm. Disabling Guest account can be easily done by adding a rule into one of the two directories. And below I made a change [&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":[27,1327],"class_list":["post-5793","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-remove-guest-session","tag-ubuntu-16-04"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/5793","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=5793"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/5793\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=5793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=5793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=5793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}