A utility by the name of "mkpasswd" is present in both the expect (as
/usr/bin/mkpasswd) and shadow-utils (as /usr/sbin/mkpasswd) packages. This
is confusing and could cause obscure failures in anything depending on
mkpasswd but using a different PATH.
There is also a man page associated with each utility (section 1 for
expect, section 8 for shadow-utils).
$ rpm -qf /usr/bin/mkpasswd
$ rpm -qf /usr/sbin/mkpasswd
$ which mkpasswd
$ su -
# which mkpasswd
mkpasswd: no DBM database on system - no action performed
mkpasswd from shadow-utils is a system utility, and should not be changed.
mkpasswd from expect is simply an example program, albeit a useful one.
Renaming it to something like "genpasswd" (generate password) or
"mkpasswd-expect" would allow it to continue to be available.
I see the problem in Red Hat Linux 6.1 and 6.2. It likely exists in other
releases as well.
I selected "shadow-utils" as the "Component" for this bug report because
"expect" was not listed. (Yes, I am aware you can create new components.)
Red Hat may wish to create an "expect" component and attach this bug to it
as well (if you can do that).
Thanks, fixed in 7.0.
There is no expect component because expect is not a package by itself:
rpm -qi `rpm -qf /usr/bin/expect` |grep RPM
shows expect is part of the tcltk package (and therefore component).