So you want to see asterisks when entering passwords?

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
ralplpcr
Level 5
Level 5
Posts: 629
Joined: Tue Jul 28, 2015 10:11 am

So you want to see asterisks when entering passwords?

Post by ralplpcr » Mon Apr 09, 2018 3:01 pm

I can't take credit for this - - I found the original on the Tecmint site - - but I can verify that with very slight modification, it does work with Mint! :)

The trick is to edit one small piece of your visudo file in a terminal editor. I don't have a KDE installation here, but I can verify that this works in Cinnamon & XFCE. Should also work in Mate, since it's also Gnome-based.

1. In a terminal, make a safety copy of your sudoers file

Code: Select all

sudo cp /etc/sudoers /etc/sudoers.bak
2. Open in a terminal editor file

Code: Select all

sudo visudo
3. Using the arrow keys, scroll down until you find the following line: Defaults env_reset
4. Append pwfeedback to that line - - it should now look like this: Defaults env_reset,pwfeedback
5. Press Ctrl+o, then Enter, then Ctrl+x. (Write the file, and exit the program)
6. Now run the following command in your terminal for the changes to start working:

Code: Select all

reset
That should be it! You'll now see ******* appear when you type your password in a terminal.
starpw.jpg
starpw.jpg (5.32 KiB) Viewed 354 times
NOTE: The ******* will vanish once the command actually executes. But it is useful to know exactly how many characters you've typed, or to reassure newbies that yes, their keyboard is actually still working. :)

User avatar
MintBean
Level 9
Level 9
Posts: 2964
Joined: Fri Aug 07, 2015 6:54 am
Location: Blighty

Re: So you want to see asterisks when entering passwords?

Post by MintBean » Mon Apr 09, 2018 3:27 pm

I think that would make a nice addition to the standard install.

User avatar
Sir Charles
Level 7
Level 7
Posts: 1832
Joined: Thu Jan 04, 2018 1:00 pm

Re: So you want to see asterisks when entering passwords?

Post by Sir Charles » Mon Apr 09, 2018 3:34 pm

Just applied this tweak on 18.3 Xfce and got my asterisks :D
Thanks for sharing!
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.

User avatar
MrEen
Level 6
Level 6
Posts: 1462
Joined: Mon Jun 12, 2017 8:39 pm

Re: So you want to see asterisks when entering passwords?

Post by MrEen » Mon Apr 09, 2018 3:42 pm

I thought about posting this info a few months ago, then realized it does (rather slightly) reduce your security. An observer could now know exactly how long your password is. I decided not to post it nor implement it. I got used to the field staying blank and probably even prefer that as default.

ralplpcr
Level 5
Level 5
Posts: 629
Joined: Tue Jul 28, 2015 10:11 am

Re: So you want to see asterisks when entering passwords?

Post by ralplpcr » Mon Apr 09, 2018 3:46 pm

MrEen wrote:
Mon Apr 09, 2018 3:42 pm
... it does (rather slightly) reduce your security.
Yes, you are correct... though I suppose it all depends on user's circumstances. If your computer is mostly secured away from public view, the risk is pretty minimal. I'd tend to agree that once you're used to no asterisks showing, it's not even something I think about.... but it's nice to have the option?

Though I haven't tried yet, I suspect that simply reversing the procedure to remove that modification would set it back to the default.

Post Reply

Return to “Tutorials”