When you run a command using sudo in Linux, the terminal asks you to type in your password with no visual feedback as you type. This article gives a quick tweak that will show asterisks (*) when you type in your password in the terminal.
Use the following command to open sudoers –
$ sudo visudo
The sample output should be like this –
# # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults mail_badpass Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:$ # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification
Scroll down to the line that looks like as shown below line –
Defaults env_reset
change it, as shown below-
Defaults env_reset,pwfeedback
Now save the file and exit.
Try to use visudo command as shown below –
$ sudo visudo
It will ask a root password and enter a root password. The sample output should be like this –
linux@linux:~$ sudo visudo [sudo] password for linux: ****
After this article, you will be able to understand – “How to create Password Asterisks visible in the terminal window in Linux” . In our next article, we will come up with more Linux based tricks and tips. Keep reading!
Thanks to: Short Articles on The Latest Technologies Permanent link
No hay comentarios.:
Publicar un comentario
Thanks for your comment