Is is possible to run the passwd command with an option to show the newly entered passwords? By default it doesn't show what I type and I don't want this.
[dave@hal9000 ~]$ passwd
Changing password for user dave.
Changing password for dave.
(current) UNIX password:
New password: bowman
Retype new password: bowman
passwd: all authentication tokens updated successfully.
Best Answer
If you really want to go this path and there's no passwd parameter, you can use this Expect script:
How it works:
This shell script might also work (tested on Fedora 20 with bash-4.2.47-2 and passwd-0.79-2):
How it works: