{"id":5053,"date":"2015-06-28T14:06:39","date_gmt":"2015-06-28T14:06:39","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=5053"},"modified":"2015-06-28T14:06:39","modified_gmt":"2015-06-28T14:06:39","slug":"minimum-password-length-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2015\/06\/minimum-password-length-ubuntu\/","title":{"rendered":"Change the Minimum Password Length in Ubuntu 14.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/ubuntu-tips.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/ubuntu-tips.png\" alt=\"ubuntu-tips\" width=\"245\" height=\"245\" class=\"alignleft size-full wp-image-5054\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/ubuntu-tips.png 245w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/ubuntu-tips-150x150.png 150w\" sizes=\"auto, (max-width: 245px) 100vw, 245px\" \/><\/a><\/p>\n<p>Ubuntu 14.04 requires a minimum password length of 8 characters, as well as complexity check by default, though you can set a short password while installing Ubuntu.<\/p>\n<p>The <code>\/etc\/pam.d\/common-password<\/code> file handles password-related configurations. If you want to set a short password and disable complexity check, edit the file via below steps:<\/p>\n<p><b>1.<\/b> Open terminal from the Dash, Launcher or by pressing <b>Ctrl+Alt+T<\/b> on keyboard. When it opens, run below command to edit the file:<\/p>\n<pre style=\"border:none;\">sudo nano \/etc\/pam.d\/common-password<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/edit-password.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/edit-password.jpg\" alt=\"edit-password\" width=\"580\" height=\"121\" class=\"aligncenter size-full wp-image-5055\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/edit-password.jpg 580w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/edit-password-450x93.jpg 450w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><\/p>\n<p><i>Type in your user password when it asks<\/i><\/p>\n<p><b>2.<\/b> When the file opens in the terminal screen, scroll down and find out the line:<\/p>\n<pre style=\"border:none;\">password     [success=1 default=ignore]    pam_unix.so obscure sha512<\/pre>\n<p>To set minimum password length, add <code>minlen=N<\/code> (N is a number) to the end of this line.<\/p>\n<p>To disable complexity check, remove &#8220;<b>obscure<\/b>&#8221; from that line.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/set-password-length.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/set-password-length-600x252.jpg\" alt=\"set-password-length\" width=\"600\" height=\"252\" class=\"aligncenter size-large wp-image-5056\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/set-password-length-600x252.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/set-password-length-450x189.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/set-password-length.jpg 900w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>After that, press <b>Ctrl+X<\/b> and then type <b>Y<\/b> to save changes and finally press <b>Enter<\/b> to exit editing.<\/p>\n<p>After all, change your password via <code>passwd USERNAME<\/code> command.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/change-password.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/change-password.jpg\" alt=\"change user password in Ubuntu\" width=\"472\" height=\"141\" class=\"aligncenter size-full wp-image-5057\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/change-password.jpg 472w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/06\/change-password-450x134.jpg 450w\" sizes=\"auto, (max-width: 472px) 100vw, 472px\" \/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Ubuntu 14.04 requires a minimum password length of 8 characters, as well as complexity check by default, though you can set a short password while installing Ubuntu. The \/etc\/pam.d\/common-password file handles password-related configurations. If you want to set a short password and disable complexity check, edit the file via below steps: 1. Open terminal from [&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":[1288,1289],"class_list":["post-5053","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-minimum-password-length","tag-short-password"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/5053","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=5053"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/5053\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=5053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=5053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=5053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}