LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Disable password masking? (https://www.linuxquestions.org/questions/linux-newbie-8/disable-password-masking-820836/)

genogebot 07-19-2010 06:02 PM

Disable password masking?
 
Is there any way to disable password masking in Linux - specifically Linux Mint 9?

Ideally I'd like to be able to choose whether to mask or unmask password fields on-the-fly, as is possible when entering passphrases in TrueCrypt.

Sometimes masking is useful (say, on a laptop in public), but often it's totally unnecessary - there's no-one looking at the screen but me, so there's no point to it.

paulsm4 07-19-2010 06:26 PM

Hi -

Just look at the source for "passwd" and modify as needed :)

"Where's the source?", you might ask. Just try Google Source (aka "CodeSearch"):

http://www.google.com/codesearch

Just type in "passwd", and that should take you here (just one of several options, all pretty clean and easy-to-follow).

Enjoy .. PSM

genogebot 07-19-2010 06:31 PM

Quote:

Originally Posted by paulsm4 (Post 4038737)
Hi -

Just look at the source for "passwd" and modify as needed :)

"Where's the source?", you might ask. Just try Google Source (aka "CodeSearch"):

http://www.google.com/codesearch

Just type in "passwd", and that should take you here (just one of several options, all pretty clean and easy-to-follow).

Enjoy .. PSM

So that's a 'no' then? For people not interested in programming, I mean.

justnight 07-19-2010 07:45 PM

I think it can be implemented, maybe the password thread just receive input and print * instead of echo back, so the change maybe is small. I guess.

Wim Sturkenboom 07-20-2010 12:46 AM

What's the problem with not seeing it? The length of the password on the machine that I'm typing this from is 26 characters and I hardly ever mistype it.

Tinkster 07-20-2010 12:50 AM

Quote:

Originally Posted by Wim Sturkenboom (Post 4039034)
What's the problem with not seeing it? The length of the password on the machine that I'm typing this from is 26 characters and I hardly ever mistype it.

Code:

abcdefg...
;D



Cheers,
Tink

Tinkster 07-20-2010 12:51 AM

Quote:

Originally Posted by genogebot (Post 4038717)
Is there any way to disable password masking in Linux - specifically Linux Mint 9?

Ideally I'd like to be able to choose whether to mask or unmask password fields on-the-fly, as is possible when entering passphrases in TrueCrypt.

Sometimes masking is useful (say, on a laptop in public), but often it's totally unnecessary - there's no-one looking at the screen but me, so there's no point to it.

There is no generic "the password entry field for Linux" to
begin with, it's all application dependent.


Cheers,
Tink

genogebot 07-20-2010 01:11 AM

Quote:

Originally Posted by Wim Sturkenboom (Post 4039034)
What's the problem with not seeing it? The length of the password on the machine that I'm typing this from is 26 characters and I hardly ever mistype it.

Good for you.

I ask 'How can I do what I want?' and you say 'You shouldn't want that.'

That doesn't help me.

genogebot 07-20-2010 01:20 AM

Quote:

There is no generic "the password entry field for Linux" to
begin with, it's all application dependent.
Damn. That sounds like a definite 'no' then. In fact, it sounds like a 'NOOOOOOOOOO!!!!!!!'

Wim Sturkenboom 07-20-2010 04:36 AM

Quote:

Originally Posted by Tinkster (Post 4039040)
Code:

abcdefg...
;D

Sh.t, I have to change it. Will use 26 backspace characters (alt something) on this windows box; you will never guess that one ;)

Quote:

Originally Posted by genogebot (Post 4039067)
I ask 'How can I do what I want?' and you say 'You shouldn't want that.'

I'm just curious why you want that. It does not help if you have multiple passwords for different accounts, because you might take the wrong one anyway. If you (think that) made a typo mistake, just wipe the whole thing and start typing again.
So just curious.

paulsm4 07-20-2010 10:36 AM

Quote:

So that's a 'no' then? For people not interested in programming, I mean.
It's a "no", I guess, for people not interested in a *solution*.

If you just want somebody to peel your grapes, chew your food, and wipe your behind ... good luck ;). But if you're interested in how it works (which is essential for figuring out how to change it), I encourage you to at least LOOK at the code. Even for a non-programmer, most of it should be pretty self-explanatory.

If in doubt, post questions. That's what we're here for :)

IMHO .. PSM

genogebot 07-20-2010 04:37 PM

Quote:

Originally Posted by paulsm4 (Post 4039569)
It's a "no", I guess, for people not interested in a *solution*.

If you just want somebody to peel your grapes, chew your food, and wipe your behind ... good luck ;). But if you're interested in how it works (which is essential for figuring out how to change it), I encourage you to at least LOOK at the code. Even for a non-programmer, most of it should be pretty self-explanatory.

If in doubt, post questions. That's what we're here for :)

IMHO .. PSM

I was hoping there would be a simple system configuration option to disable password masking, or an addon available. Apparently not, but I don't think it was an unreasonable question.

As to the code, I have neither the time nor the inclination to delve into it. If you like doing that, fine, go for it, enjoy. But to suggest that people who don't do so are basically lazy is, I think, unrealistic and overly critical.

I want an operating system to use, to get things done, not to tinker with. To suggest that that is somehow wrong does not help those who want to promote linux as a desktop operating system for average users.

chrism01 07-21-2010 05:32 AM

The key is Tinkster's post #7; every service/app can (and often does) do its own passwd 'masking' ....


All times are GMT -5. The time now is 07:25 AM.