Fix for password shown on screen
June 14, 2008 —
BarryK
The 'init' script uses the Busybox internal 'read' command to read the password, and this was echoing to the screen. So if there were others nearby then you had to nonchalantly place your body so as to try and obstruct their vision
The 'read' command accepts a '-s' parameter, which suppresses the echo to screen, and that's what I have done. That means nothing at all echoes to the screen, which I guess is good as noone can guess your password based on its length.
Comments
To dumb figure it out quickly? Yes i am.Username: Feverfew
"they would quickly realise that it works" I hope there faster then me. With xlock It took me three years of off and on searching (forums/interweb & such) too figure that one out. I borked a lot of Puppy cd/dvds before I learned first thing first delete the xlock icon.
no echo
Username: Viking Sailor
"Berry, Not echoing an "*" when the user inputs his password is way different then what most users are use to. This will require every user to discover and remember something that is unique to puppy. I believe that not having an echo for the password will be very frustrating for the users. I wish I could help you with this but I am not a CLI guru. I wonder how other distributions handle password input? Thanks for giving us Puppy, Paul
One char reads
Username: Viking Sailor
"If the busybox read is like the bash read it should be possible to do a one char read using the -n 1 parameter. Paul
Tags: puppy