View Issue Details

IDProjectCategoryView StatusLast Update
0017836CentOS-7passwdpublic2020-11-08 14:45
Reporterjgold Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version7.4.1708 
Summary0017836: The enter key does not work when entering the password on the passwd program
DescriptionWhen 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 ReproduceType sudo passwd [user] and then attempt to enter a password for the user.
TagsNo tags attached.
abrt_hash
URL

Activities

ManuelWolfshant

ManuelWolfshant

2020-11-08 08:13

manager   ~0037855

Last edited: 2020-11-08 08:15

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.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.

jgold

jgold

2020-11-08 14:43

reporter   ~0037856

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.
jgold

jgold

2020-11-08 14:45

reporter   ~0037857

*installations

Issue History

Date Modified Username Field Change
2020-11-07 22:14 jgold New Issue
2020-11-08 08:13 ManuelWolfshant Note Added: 0037855
2020-11-08 08:15 ManuelWolfshant Note Edited: 0037855
2020-11-08 14:43 jgold Note Added: 0037856
2020-11-08 14:45 jgold Note Added: 0037857