This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

passwd (cygwin) 1.7.31 ignores keyboard interrupts


The password utility /bin/passwd ignores the ^C and ^D interrupt
characters in mintty in my 64-bit only cygwin environment.

This can lead to inadvertent password changes, possibly requiring a
lengthy or complex password recovery or reset.

When you start /bin/passwd from a mintty terminal window with normal
privileges, it asks for your old password and your new password twice.
During entry of these three strings ^C seems to be ignored while ^D is
treated as a newline.

Worse yet, if you start the terminal with "Run as administrator",
/bin/passwd does not first ask for your old password.

If you happen to enter the same string of ^C, ^Break and ^D or CR, at
both new password prompts, in a desperate attempt to escape from the
passwd program, you may change your password to something which cannot
be entered into the windows password entry field. This may not be
evident until you later try to unlock your session or re-login.
Closing the mintty windows seems to be the only direct way to exit
passwd, without entering an incorrect old password or 3 failures to
enter the same new password.

A possibly related problem is that you cannot use ^H or backspace to
correct an erroneous entry.

IIRC, this behavior is different from that on Linux and other *nix systems.

Attaches is the output from cygcheck -svr.

Your attention is appreciated,

Doug

-- 
Doug Henderson, Calgary, Alberta, Canada

Attachment: cygcheck-svr.txt
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]