View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0017836||CentOS-7||passwd||public||2020-11-07 22:14||2020-11-08 14:45|
|Summary||0017836: The enter key does not work when entering the password on the passwd program|
|Description||When trying to reset a user password with the command passwd user, the command prompts for a new password. The enter key is ignored. The only way to change the password is to hold down the control key when pressing enter.|
A work around is to change the stty option icrnl on. This translates carriage returns to line feeds. However, since this command basically disables the CR key it causes other programs that require it to break.
|Steps To Reproduce||Type sudo passwd [user] and then attempt to enter a password for the user.|
|Tags||No tags attached.|
Please check your terminal settings and even your hardware. Given the huge number of installations and the age of the distribution, such a problem would have been reported a very very long time ago.
[wolfy@wolfy ~]$ sudo passwd x
Changing password for user x.
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
It might have been reported a long time ago but maybe not. For most instantiations I think, the work around of using "stty icrnl" fixes it because most input works with either a cr or nl. In my case, the CR is treated differently in some of our applications so that work around doesn't help.
There's also the case that everything else works with the enter key. Only the passwd program has the issue. It's obviously using a different input function that the rest of the system. That may be by design because someone somewhere needed special characters for a password that the normal input would restrict. I don't know if that's the case but passwd does work differently than the other programs and the fact that it doesn't work with the CR is it think, a bug. It's a bug that is not present on other distributions I've used.