{"id":3763,"date":"2014-08-08T06:28:25","date_gmt":"2014-08-08T06:28:25","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=3763"},"modified":"2014-08-08T06:28:25","modified_gmt":"2014-08-08T06:28:25","slug":"ubuntu-display-asterisks-when-typing-password-terminal","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2014\/08\/ubuntu-display-asterisks-when-typing-password-terminal\/","title":{"rendered":"Ubuntu Tips &#8211; Display Asterisks When Typing Your Password in Terminal"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/06\/Ubuntu-tips-icon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3557\" alt=\"Display Asterisks when typing password\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/06\/Ubuntu-tips-icon.png\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/06\/Ubuntu-tips-icon.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/06\/Ubuntu-tips-icon-150x150.png 150w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>When you run a command started with <b>sudo<\/b> in Ubuntu terminal, it asks you to insert the password for your user with no visual feedback as you type.<\/p>\n<p>For beginners who feel uncomfortable with this terminal feature, below will teach you how to tweak your Ubuntu so that Gnome terminal (and TTY console) displays asterisks when you type in your password.<\/p>\n<div id=\"attachment_3767\" style=\"width: 570px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/terminal-with-password-feedback.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3767\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/terminal-with-password-feedback.jpg\" alt=\"Terminal with password feedback\" width=\"560\" height=\"133\" class=\"size-full wp-image-3767\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/terminal-with-password-feedback.jpg 560w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/terminal-with-password-feedback-300x71.jpg 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><p id=\"caption-attachment-3767\" class=\"wp-caption-text\">Terminal with password feedback by displaying asterisks<\/p><\/div>\n<p><b>1.<\/b> Press <b>Ctrl+Alt+T<\/b> on keyboard to open a terminal window. Or open terminal from Unity Dash.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/07\/terminal.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-698\" alt=\"Open Terminal to run commands\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/07\/terminal.jpg\" width=\"309\" height=\"205\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/07\/terminal.jpg 309w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/07\/terminal-300x199.jpg 300w\" sizes=\"auto, (max-width: 309px) 100vw, 309px\" \/><\/a><\/p>\n<p><b>2.<\/b> Paste the below command in terminal and hit enter. Type in your password when prompt.<\/p>\n<pre style=\"border: none;\">sudo visudo<\/pre>\n<p>It will open the configuration file &#8220;\/etc\/sudoers&#8221; in terminal with nano editor.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/open-sudoers.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3764\" alt=\"Edit sudoers in Ubuntu\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/open-sudoers.jpg\" width=\"406\" height=\"115\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/open-sudoers.jpg 406w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/open-sudoers-300x84.jpg 300w\" sizes=\"auto, (max-width: 406px) 100vw, 406px\" \/><\/a><\/p>\n<p><b>3.<\/b> Make a new line:<\/p>\n<blockquote><p>Defaults \u00a0 \u00a0 \u00a0 \u00a0pwfeedback<\/p><\/blockquote>\n<p>under the line:<\/p>\n<blockquote><p>Defaults \u00a0 \u00a0 \u00a0 \u00a0env_reset<\/p><\/blockquote>\n<p>So it looks like this: (NOTE that the space between <b>Defaults<\/b> and <b>pwfeedback<\/b> should be a <b>tab<\/b>)<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/enable-password-feedback1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/enable-password-feedback1.jpg\" alt=\"Enable password feedback in terminal\" width=\"560\" height=\"343\" class=\"aligncenter size-full wp-image-3766\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/enable-password-feedback1.jpg 560w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/08\/enable-password-feedback1-300x183.jpg 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<p>4. Now save the changes. Press <b>Ctrl+X<\/b>, type <b>y<\/b> to answer yes, press <b>Enter<\/b> to accept default file name.<\/p>\n<p>Close this terminal window and done.<\/p>","protected":false},"excerpt":{"rendered":"<p>When you run a command started with sudo in Ubuntu terminal, it asks you to insert the password for your user with no visual feedback as you type. For beginners who feel uncomfortable with this terminal feature, below will teach you how to tweak your Ubuntu so that Gnome terminal (and TTY console) displays asterisks [&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":[1130,243],"class_list":["post-3763","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-enable-password-feedback","tag-terminal"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/3763","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=3763"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/3763\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=3763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=3763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=3763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}