'passwd' command asking for multiple "Retype new password:" prompts while resetting/changing the user password
Issue
- Why does system prompt to enter password multiple times while changing the password?
- While changing password for any user on system, it's asking to retype password for three times(multiple times).
[root@server ~]# passwd testuser
Changing password for user testuser.
New password:
Retype new password:
Retype new password: <------ Extra Password Prompt
passwd: all authentication tokens updated successfully.
[root@server~]#
- The passwd command asks to enter "Retype new password" two times while it should ask for only one time:
$ sudo passwd user1
Changing password for user user1.
New password:
Retype new password:
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- pam
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.