[SOLVED] Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
kayaksan
Level 1
Level 1
Posts: 3
Joined: Mon Jan 22, 2018 10:58 am

[SOLVED] Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by kayaksan »

Greetings.

I have noticed that terminals in Linux Mint 19.1 Tessa (XFCE4-panel 12.2, 64-bits, kernel 4.15.0-43 generic) display asterisks when the user needs to type their root password. I've tried this is UXTerm, Gnome-Terminal, Terminator and XFCE4 Terminal. I believe this is universal. I've looked on the advanced tab on the documentation page of the terminal and found no mention of that (at least explicitly). I've searched on the terminal settings a way to disable this feature -- so far, nothing related to it. I've also tried the visudo way of showing asterisks by adding the pwfeedback line, but in my case, this line doesn't exist, so I can't delete it to try a fix. It's become a standard feature.

I'd like to know how to disable this feature and maintain the plain invisible feature when typing password in terminals.

Thanks in advance.
Last edited by Moem on Sat Dec 29, 2018 2:09 pm, edited 2 times in total.
Reason: Marked this as [SOLVED] for you; please note that you can and should do this for your own topics. Thanks!
User avatar
MrEen
Level 21
Level 21
Posts: 13008
Joined: Mon Jun 12, 2017 8:39 pm

Re: Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by MrEen »

Hi kayaksan.

From Clem here:

Yes, you can remove /etc/sudoers.d/0pwfeedback.
kayaksan
Level 1
Level 1
Posts: 3
Joined: Mon Jan 22, 2018 10:58 am

Re: Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by kayaksan »

Hello MrEren

Thank you for your answer, it has helped me tailor my question specifically and it made me look at the comments and other Linux Mint blog posts again.

I've found a way to disable it with one command:

Code: Select all

sudo mv /etc/sudoers.d/0pwfeedback /etc/sudoers.d/0pwfeedback.disabled 
Thanks to the user NIkoKrauser here on this link.


Solved!
User avatar
MrEen
Level 21
Level 21
Posts: 13008
Joined: Mon Jun 12, 2017 8:39 pm

Re: Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by MrEen »

An even better way there, as it's reversible. Nice find. :D
User avatar
Moem
Level 20
Level 20
Posts: 11570
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by Moem »

kayaksan wrote:
Sat Dec 29, 2018 1:59 pm
Solved!
That's cool! I'll mark the topic as SOLVED for you, this time. 8)
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by gm10 »

MrEen wrote:
Sat Dec 29, 2018 2:04 pm
An even better way there, as it's reversible. Nice find. :D
The only good way is to override it, that's why I prefixed it with the 0 so it gets read early:

Code: Select all

echo 'Defaults !pwfeedback'|sudo tee /etc/sudoers.d/9_no_pwfeedback
The other two solutions won't survive the next update to the mintsystem package, that's why they're no good in the long term.

As a side-note, I'm surprised people have issues with this feature, considering graphical authentication works the same way. I just normalized password entry between GUI and terminal so we don't have to explain to newbies anymore that their keyboard isn't broken when on a command line. ;)
User avatar
MrEen
Level 21
Level 21
Posts: 13008
Joined: Mon Jun 12, 2017 8:39 pm

Re: Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by MrEen »

gm10 wrote:
Sat Dec 29, 2018 2:17 pm
Understood and agreed. If someone can see and count asterisks's's's , they can also probably hear and count keyclicks.
gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by gm10 »

MrEen wrote:
Sat Dec 29, 2018 2:26 pm
Understood and agreed. If someone can see and count asterisks's's's , they can also probably hear and count keyclicks.
I'd say if someone is close enough to count the * they can probably see the keys you press as well. :P
User avatar
thx-1138
Level 8
Level 8
Posts: 2112
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by thx-1138 »

gm10 wrote:
Sat Dec 29, 2018 2:17 pm
...............................
...care to earn a few 'points' over at stackexchange? :lol: :wink:
gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by gm10 »

thx-1138 wrote:
Sat Dec 29, 2018 2:32 pm
...care to earn a few 'points' over at stackexchange? :lol: :wink:
It might surprise you but I don't even have an account at SE or related sites. My Linux forum-life is limited to the Mint forums. If you're out for rep at SE feel free to answer in my stead. :mrgreen:
User avatar
thx-1138
Level 8
Level 8
Posts: 2112
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: [SOLVED] Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by thx-1138 »

Hahaha! I dont' have an account myself either there, thereby i'll pass the opportunity to...
'make a name' for myself - even if under the direct permission from the author himself :)
I do browse though stackexchange, askubuntu & reddit on a semi-daily basis as a way of spending killing time,
and picking up the odd piece of info or workaround here & there...
Noticed the above yesterday & found it somewhat amusing - in the sense,
of just how much 'pointless' such 'point' systems can be, at least online...
User avatar
Pjotr
Level 22
Level 22
Posts: 15490
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by Pjotr »

gm10 wrote:
Sat Dec 29, 2018 2:17 pm
As a side-note, I'm surprised people have issues with this feature, considering graphical authentication works the same way. I just normalized password entry between GUI and terminal so we don't have to explain to newbies anymore that their keyboard isn't broken when on a command line. ;)
You achieved that? Thanks!

Indeed, there was no valid reason to maintain that difference between graphical authentication and terminal authentication. It just makes life easier for newbies, without diminishing their security.

I did have to modify quite some amount of lines in the how-to's on my website, though. :P
Tip: 10 things to do after installing Linux Mint 20 Ulyana
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by gm10 »

Pjotr wrote:
Sat Jan 26, 2019 7:51 am
You achieved that? Thanks!

Indeed, there was no valid reason to maintain that difference between graphical authentication and terminal authentication. It just makes life easier for newbies, without diminishing their security.
Cheers for the feedback. I think you're actually the first to say out loud that hey liked the change. ;) And it's not just easier for newbies, I find it convenient myself. :P
Pjotr wrote:
Sat Jan 26, 2019 7:51 am
I did have to modify quite some amount of lines in the how-to's on my website, though. :P
Hah, I take that as a good thing, because if you felt it necessary to add that much explanation that further confirms my reasoning for changing it.
Last edited by gm10 on Sat Jan 26, 2019 12:29 pm, edited 1 time in total.
User avatar
Pjotr
Level 22
Level 22
Posts: 15490
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: [SOLVED] Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by Pjotr »

Yep, it's a good change.... It makes me wonder why Ubuntu never thought of that. After all, Ubuntu's very reason for existence is to make Debian easier.

And don't mind the criticism.... Nobody in his right mind can defend the logic of graphical authentication *with* feedback, and terminal authentication *without* feedback. Feedback is only a very small decrease of security, but heightens the user-friendliness noticeably.

I suppose the criticasters are just creatures of habit. :lol:
https://www.youtube.com/watch?v=ut3jqRlElOM
Tip: 10 things to do after installing Linux Mint 20 Ulyana
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: [SOLVED] Mint 19.1 -- Terminals show asterisks on password. How to disable this feature?

Post by gm10 »

Pjotr wrote:
Sat Jan 26, 2019 11:53 am
And don't mind the criticism....
Oh don't worry, I don't, it's obvious you'll never please everyone. And while that specific feature is pretty binary, generally criticism of the constructive kind can be very helpful to further improve things, so I invite it. :)
Post Reply

Return to “Software & Applications”