Categories: ShellUbuntu

How to Make Password Asterisks Visible in Ubuntu Terminal

Whenever you are asked to type a password in Ubuntu terminal, you insert your password without getting any visual display or a feedback from the screen. In such a situation, there are the chances that you may mess up with your password by entering it wrongly. This is the reason why visual feedback is so important. It helps you to keep a track of the number of characters that you have entered especially while typing passwords so that you may not miss out any characters or type in extra characters. One such visual feedback is given through the display of asterisks (***) while typing passwords. In this article, we will tell you how you can enable this feature in Ubuntu terminal.

Making Password Asterisks Visible in Ubuntu Terminal

For making password asterisks visible in Ubuntu terminal, you need to perform the following steps:

Launch the terminal by pressing Ctrl+ T or clicking on the terminal icon from the taskbar or searching for the terminal in the search window by typing terminal and pressing enter. The newly opened terminal window is shown below:

Now type the command:

sudo visudo

in command prompt and press enter. This command is shown below:

As soon as you will press enter, you will be asked to enter your password.

After you entered your password, a system file will open with nano editor in the terminal. This file is shown below:

By making use of the arrow keys, scroll down to the line Defaults env_reset. This line is highlighted in the following image:

Modify this line by typing, pwfeedback at the end. This is shown below:

After this modification, press Ctrl+ X to save the changes and press y in response to the question shown below:

It will ask you a filename to write. Just press enter to choose default.

After this step, you will be returned to the regular terminal window. Just type exit and press enter or click on the red cross located at the top left corner to close the terminal window.

Now, whenever you will open terminal next time and type any command with sudo, you will be able to view asterisks against your entered password as shown below:

Conclusion

In this way, you can make the password asterisks visible in Ubuntu terminal by following a very few simple steps. These settings will be saved for future unless you change them otherwise by modifying this file again.

 

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn

Recent Posts

How to Install Magento 2 on AlmaLinux

Magento is a free and open-source e-commerce platform written in PHP. It is simple, easy…

1 year ago

How to Install ISPConfig Hosting Control Panel with Apache Web Server on Ubuntu 24.04

ISPConfig is an open-source control panel that allows users to manage multiple servers from a…

1 year ago

How to Test your Email Server (SMTP) Using the Telnet Command

As a Linux administrator, you may find it necessary to troubleshoot or test your Simple…

1 year ago

Managing Network Interfaces and Settings on Ubuntu 24.04 with nmcli

Ubuntu 24.04, like many modern Linux distributions, relies on the NetworkManager for managing network connections.…

2 years ago

Using Restic Backup on Ubuntu 24.04

Restic is a modern, open-source backup program designed for efficiency, security, and simplicity. It enables…

2 years ago

Installing phpMyAdmin on Rocky Linux 9 and Securing it with Let’s Encrypt SSL

phpMyAdmin is a popular free tool written in PHP intended to administer MySQL and MariaDB…

2 years ago