{"id":147,"date":"2007-07-31T18:31:25","date_gmt":"2007-07-31T18:31:25","guid":{"rendered":"http:\/\/ubuntucat.wordpress.com\/2007\/07\/31\/creating-a-passwordless-account-in-ubuntu\/"},"modified":"2007-07-31T18:31:25","modified_gmt":"2007-07-31T18:31:25","slug":"creating-a-passwordless-account-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.psychocats.net\/ubuntucat\/creating-a-passwordless-account-in-ubuntu\/","title":{"rendered":"Creating a Passwordless Account in Ubuntu"},"content":{"rendered":"<p>For years, <a href=\"http:\/\/www.google.com\/search?hl=en&amp;q=site%3Aubuntuforums.org+passwordless+account&amp;btnG=Google+Search\">people have been asking how to create a guest account with no password in Ubuntu.<\/a> Usually, someone replies that this a security risk and warns against proceeding. Then some other people recognize it as a security risk but still try to help the person&#8230; to no avail. The most commonly suggested &#8220;solution&#8221; is <b>sudo passwd -d <i>username<\/i><\/b>, which is supposed to delete the password for <i>username<\/i>, at least according to <b>man passwd<\/b>: <\/p>\n<blockquote><p><i>-d, &#8211;delete <br \/> Delete a user&#8217;s password (make it empty). This is a quick way to disable a password for an account. It will set the named account passwordless.<\/i><\/p><\/blockquote>\n<p> It does not work on Ubuntu, though. <\/p>\n<p> A year and a half ago, someone created what I view as being <a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=123116\">a fairly complex workaround editing the PAM config and maintaining a separate text file listing users who are allowed a passwordless login<\/a>. I&#8217;m not sure if that works or not, but the most straightforward way I could think to do this is copy what was done on the Ubuntu live CD. After all, on the Ubuntu live CD (also known as the Desktop CD), the username is <i>ubuntu<\/i>, but you&#8217;re not required to enter a password&mdash;you can just press <i>Enter<\/i> for the password and log in. <\/p>\n<p> So I looked at the \/etc\/shadow file, which holds encrypted passwords for all users, on the live CD and found that the encrypted password for the user <i>ubuntu<\/i> is <i>U6aMy0wojraho<\/i>. So I tried editing the \/etc\/shadow file on my own installation of Ubuntu and changing the password for a test user from its previous encrypted password to <i>U6aMy0wojraho<\/i>, and I was able to log in as that user without entering a password. <\/p>\n<p> You can find <a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=513820\">my new HowTo in the Tutorials and Tips section of the Ubuntu Forums<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For years, people have been asking how to create a guest account with no password in Ubuntu. Usually, someone replies that this a security risk and warns against proceeding. Then some other people recognize it as a security risk but still try to help the person&#8230; to no avail. The most commonly suggested &#8220;solution&#8221; is&hellip; <a class=\"more-link\" href=\"https:\/\/www.psychocats.net\/ubuntucat\/creating-a-passwordless-account-in-ubuntu\/\">Continue reading <span class=\"screen-reader-text\">Creating a Passwordless Account in Ubuntu<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-147","post","type-post","status-publish","format-standard","hentry","category-ubuntu","entry"],"_links":{"self":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":0,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}